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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply

Grand Total of measure doesn't equal sum of row values

So i've done quite a bit of research.  I've found that my measure is calculating by row properly:

 

YTD.sample.2 = 
 CALCULATE(
     IF([YTDEarn]-[Period.Earn]>7000 ,[Period.Earn]*[Bonus %]
         ,IF([YTDEarn]>7000,([YTDEarn]-7000)*[Bonus %],0))
     ,FILTER(VALUES(SALES[SALES_PERSON]),[YTDEarn]>7000))

When viewing data in table, grand total is not the sum of rows.  Row total is 2076.5381 Grand Total displays 2470.  

 

As a side note i've noticed that all earnings are being sum (regardless of the second condition) when viewing the grand total.

 

TIA .csv File

 

 

 

 

 

 

 

 

Power BI resultsPower BI resultsSpreadsheet ResultsSpreadsheet Results

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @KUNGFUPANDA559,

 

Please try the method provided in below thread:

Dealing with Measure Totals

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-yulgu-msft
Employee
Employee

Hi @KUNGFUPANDA559,

 

Please try the method provided in below thread:

Dealing with Measure Totals

 

Best regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

OMG when i tell you thank you. . .  This is exactly what I was looking for!

For the values that are NOT YTDEarnings-PeriodEarnings>7000 current filter is multipying the full period earnings by Bonus amount.  I'm just unsure of how to get it to calculate grand total based on row totals (sumx?)

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.