Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi all, hoping someone can help.
I have a number of measures which calculate the columns you can see above.
Solved! Go to Solution.
Hi, @nh27 ;
You could try this measure.
EDG Levy2 =
var _table=SUMMARIZE('Table',[EDG Gross sales],'Table (2)'[Levy_ tax],"1", [EDG Gross sales]*MAX('Table'[Levy_ tax]))
return SUMX(_table,[1])
The final output is shown below:
If this formula is not suitable for your data, can you share more about the structure of your two tables or simple files?
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @nh27 ;
You could try this measure.
EDG Levy2 =
var _table=SUMMARIZE('Table',[EDG Gross sales],'Table (2)'[Levy_ tax],"1", [EDG Gross sales]*MAX('Table'[Levy_ tax]))
return SUMX(_table,[1])
The final output is shown below:
If this formula is not suitable for your data, can you share more about the structure of your two tables or simple files?
Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@nh27 , Ideally you should have moved discount to Zsales and should have done calculation at line level
because we should do Sum(A*B) Not Sum(A) * Max(B)
Now use some visual group bys have measure like
EDG Discount = Sumx(values(Table[Column]), [EDG Gross Sales]*MAX(Discount_Lookup[Discount]) )
EDG Levy = Sumx(values(Table[Column]), [EDG Gross Sales]*MAX(Discount_Lookup[Levy_tax]) )
Also check
https://www.youtube.com/watch?v=ufHOOLdi_jk
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
Thanks for the suggestions, creating a SUMX on the Discount and Levy measures seem to have done the trick.
We did consider embedding this into the table itself, however we may have 8-10 different variations for different sales areas on this calculation so we felt using measures would be best suited.
The two below unfortunately did not seem to work:
EDG Discount = Sumx(values(Table[Column]), [EDG Gross Sales]*MAX(Discount_Lookup[Discount]) )
EDG Levy = Sumx(values(Table[Column]), [EDG Gross Sales]*MAX(Discount_Lookup[Levy_tax]) )
Thanks for the links
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |