Forum Discussion
Division with filtered field
- 7 years ago
Hi ThiagoMi88
Create two measures
amount_product = CALCULATE ( SUM ( Table1[Amount] ), FILTER ( ALLEXCEPT ( Table1, Table1[Production Order], Table1[Product] ), LEFT ( Table1[Raw Material], 3 ) = "Pro" ) )Expected result = MAX(Table1[Amount])/[amount_product]
Best Regards
MaggieCommunity Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
First of all,
Thanks for the answers.
I forgot a very important field of the table, "production order".
It can occur in 2 different production orders, used to produce the same product, different amounts of raw material are used.
In this way the amount of raw material used in each production order would be different.
Hi,
In another column, Ssow the exact result you are expecting. Also, share your data in a format that can be pasted in an Excel file.
- ThiagoMi887 years agoRegular Visitor
It's ok,
Here is the worksheet
- Ashish_Mathur7 years ago
Super User
Hi,
I cannot download your workbook from that link. Share the link from where i can download your workbook and please ensure that the expected result column is formula driven so that i can understand the logic.
- ThiagoMi887 years agoRegular Visitor
Follow the link
Sorry. The logic is the same as I described earlier, I just forgot to mention the Production Order field.