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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
bedata1
Frequent Visitor

DAX if statement has no / wrong total

Hi Community,

 

I have created an if DAX where the total is not displayed:

bedata1_0-1668975970495.png

 

First I created the following DAX called "Effizienz":

 

Effizienz =
DIVIDE(
    SUM('Projektposten'[Quantity]),
    SUM('Projekt-Budgetposten'[Quantity])
)
 
Second I used this in another DAX calles "100%":
 
100% = if( and([Effizienz]<=1.1, [Effizienz]>0.8),1,0)
 
Now I actually expect it to show me the totalization (see printscreen above).

Can someone help me how to get the total displayed?

Thanks for your help!

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @bedata1 

you can force additivity using

100% =
SUMX (
VALUES ( 'Table'[No] ),
VAR Efficiency = [Effizienz]
RETURN
IF ( AND ( Efficiency <= 1.1, Efficiency > 0.8 ), 1, 0 )
)

View solution in original post

3 REPLIES 3
tamerj1
Super User
Super User

Hi @bedata1 

you can force additivity using

100% =
SUMX (
VALUES ( 'Table'[No] ),
VAR Efficiency = [Effizienz]
RETURN
IF ( AND ( Efficiency <= 1.1, Efficiency > 0.8 ), 1, 0 )
)

@tamerj1  incredibly good support, thank you very much!

FreemanZ
Super User
Super User

the totalization of what?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.