Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
FAA9
Frequent Visitor

Multiplication of two calculated measures & wrong subtotals

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]) ) )

FAA9_1-1668184372873.png

 



 

 

1 ACCEPTED SOLUTION
AnkitKukreja
Super User
Super User

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.

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

View solution in original post

1 REPLY 1
AnkitKukreja
Super User
Super User

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.

 

 

For Power BI trainings or support dm or reach out to me on LinkedIn.
If my response has successfully addressed your question or concern, I kindly request that you mark this post as resolved. Additionally, if you found my assistance helpful, a thumbs-up would be greatly appreciated.

Thanks,
Ankit Kukreja
www.linkedin.com/in/ankit-kukreja1904
https://topmate.io/ankit_kukreja

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.