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

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.

Reply
Anonymous
Not applicable

DAX Measure is blank on card

Hello DAX Masters,

 

I'm calculating the "BonusCommission" earned if some accounts hit a certain goal, I'm able to generate this value at a matrix without issues.

 

I think the problem is that my "Bonus Comm Payout" calculation depends on an if statement where a "% to Goal" has to be above 100%

 

Bonus Comm Payout* = 

VAR QualifyingRevenue = CALCULATE( SUM( Sl_Booking[GTR USD]))

RETURN

IF( [% to Goal] >= 1 , QualifyingRevenue * [Bonus Comm %] , 0)

 

2020-02-07_16-56-46.png

 

My expected result should be 464.26 + 208.12 = 672.38

 

Any guidance is greatly appreciated!

1 REPLY 1

The issue is that your matrix is providing some filter that is not being provided by your card. I can't tell from the image what that filter is, but you need to replicate that filter in your measure using a SUMX. You can read my longer explanation in my blog article explaining sum vs sumx

Bonus Comm Payout* = 

sumx(values(table[column filtering your matrix]),IF( [% to Goal] >= 1 , CALCULATE( SUM( Sl_Booking[GTR USD])) * [Bonus Comm %] , 0))

 



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors