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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
ryan__seng
New Member

Wrong Grand Total Calculation

Hi everyone, 

 

I have 2 main inputs which are Forecast and Sales_orderlist, connected using master_cus, master_mat and calendar table.  

ryan__seng_0-1693380296663.png

I have added a new column in Forecast table to classified if given the date, is the data considered as forecast or actual (past data). 

ryan__seng_1-1693380438852.png

Then use a measure to calculate the value. If it is Actual, it will calcualte the sum of quantity in Sales_orderlist table, elseif it is Forecast, it will calculate the sum from Forecast table.

ryan__seng_2-1693380554155.png

 

The output of the measure is shown in the top matrix

ryan__seng_3-1693380613105.png

 

All values are as expected except the grand total of 16,578,623 which I see that it is calculated from the grand total sum of the quantity in the Forecast table as the numbers are the same shown in the matrix below it.

 

My expectation for the grand total is to be 17,584,000 as a sum of the total column. 

 

1 REPLY 1
Ahmedx
Super User
Super User

Share sample pbix file to help you.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.