how to calculate the net profit i have cost price and sales price in product table ! i have cost price in the product table only and i want make a chart or table to show me the net profit of total orders !
product table
product table
Solved! Go to Solution.
According to your tables, what you need to do in order to calculate profit per order is to subtract the relevant products cost + shipping fees from the total value of the order that you name it "Total Cost".
To do this you can do the following:
I noticed that you add the shipping fees to only one item per order in your OrderDetails table. This indicates that you are collecting a shipping fee per order not per item, which is the expected usual practice. Hence, it is better to remove the shipping fee column from the OrderDetails table and add it instead to the Orders table. In this case, the expression should be:
[Total Cost] - [shipping fees]
- SUM([Related OrderDetails][Product Cost])
Read these:
Dereference Expressions | AppSheet Help Center
List Dereference | AppSheet Help Center
Order date?
and instead of the โโฆโ you should complete the list of months
The expression has to match the values.
In the expression you have short names: Jan, Feb, etc.
In the values you have long names: January, February, etc.
Change either to match the other.
@Joseph_Seddik hellooo ya boss could you help me please ๐
ุงุฒูู ูุง ุญุณู ๐
I remember your app, but can't figure out from your photos which table is which. Can you please show me the sheet's tables and make sure the sheet name on the bottom is visible. Thank you.
tables
According to your tables, what you need to do in order to calculate profit per order is to subtract the relevant products cost + shipping fees from the total value of the order that you name it "Total Cost".
To do this you can do the following:
I noticed that you add the shipping fees to only one item per order in your OrderDetails table. This indicates that you are collecting a shipping fee per order not per item, which is the expected usual practice. Hence, it is better to remove the shipping fee column from the OrderDetails table and add it instead to the Orders table. In this case, the expression should be:
[Total Cost] - [shipping fees]
- SUM([Related OrderDetails][Product Cost])
Read these:
Dereference Expressions | AppSheet Help Center
List Dereference | AppSheet Help Center
ุญุจูุจู ูุงููู ุงูู ุดูุฑ ๐ ๐๐
You are the best its working as usual from you , thank you so much ๐๐๐
ุชุณูู ุ ุจุณูุทุฉ ูุง ุตุฏููู --<@
boss hello i would like ask about something firstly everything work great and i can now know the net profit and i removed the shipping fees from order details as you told me and i add it in orders table but i have a problem with total cost , before was, SUM ( SELECT (OrderDetails[Total], [Order Id] = [_THISROW].[Order Id])) , now i want add the shipping fees in the total cost , how its work !
@Joseph_Seddik i solved i used this expression and its work [shipping fees]
+ SUM([Related OrderDetails][total])
Right!
ุงูุช ุจููุช ุฃุณุชุงุฐ ๐
ุฏุง ุงูุช ุงูุงุณุชุงุฐ ูุงููู ุจูุชุนูู ู ูู ๐
@Joseph_Seddik i would like to ask another question what if i want know the profit by the month ! ( i dont have any row of month's or tables )
The easiest way is to add "Month" and "Year" columns. This will allow you to group by these columns in the view and display the sum automatically.
ok add them in order table right ! and month columns make it enum and the monthes or make it taxt type and add the month table and jan feb .. in the google sheet ! which better !
Enum with app formula:
INDEX({"Jan", "Feb", ... , "Nov", "Dec"}, MONTH([date]))
its give me this massage i dont have date column
Order date?
and instead of the โโฆโ you should complete the list of months
ุญุจูุจู ุชุณูู ูุง ุจุงุดุง
done ya king its working now thank you so much ๐
Enter the months one by one in order in the allowed values of the enum column.
I canโt put anything in the month column ( invalid date)
โ
Not here. Open the column in the app editor. In Type Details add the months as allowed values.
Iโm on mobile and canโt make you a screenshot.
https://help.appsheet.com/en/articles/961539-drop-down-from-simple-list-of-values
I already added the months but nothing changed
โ
The expression has to match the values.
In the expression you have short names: Jan, Feb, etc.
In the values you have long names: January, February, etc.
Change either to match the other.
You are a king ๐ of solutions ๐
@Joseph_Seddik joooo ezyek question of day ya jo ๐ i don't have category in order datiles table but i have one in the products table i want add category in order details table to be specific when i make order show for me only the products of this category only , may its will be better if i add you in my app and take a look and give me all your comments of the app
User | Count |
---|---|
14 | |
11 | |
9 | |
7 | |
4 |