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,
I am struggling to find the right measure for calculating the subtotal at the month level for the Weighted (WTD) stock cover in weeks.
Example of row-wise calculation: (12%+27%)*7.6 = 3.0 of wtd stock cover in wks for Partner A.
In the month total I want to sum up all these results from sub-category and regional level for each Partner to get the sum shown on extreme right.
Whats the best way to get that? I have tried sumx and summarize etc. Nothing is working 😞
____
Wtd Forecast =
VAR monthly_fc = CALCULATE(Sum[FC Value]), ALLSELECTED(Product[code]), all(Product[Partner]), all(tblDate[Date]) )
VAR weekly_fc = CALCULATE(Sum[FC Value]), ALLSELECTED(Product[code]))
Return
DIVIDE(weekly_fc, monthly_fc)
____
wtd cover= CALCULATE([Days Covers]/7)*(CALCULATE([Wtd Forecast], ALL(Products[Partners]) ) )
Solved! Go to Solution.
Hi! @FAA9
SQL BI covered this topic last month, please have a look at this and see if that helps you.
https://www.sqlbi.com/articles/why-power-bi-totals-might-seem-inaccurate/
https://www.youtube.com/watch?v=Rii_6qkLNh8
If it doesn't help, Please share the pbix file if possible.
Hi! @FAA9
SQL BI covered this topic last month, please have a look at this and see if that helps you.
https://www.sqlbi.com/articles/why-power-bi-totals-might-seem-inaccurate/
https://www.youtube.com/watch?v=Rii_6qkLNh8
If it doesn't help, Please share the pbix file if possible.
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.