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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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