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
Aucesar
Helper III
Helper III

Dax Calculate "IS NOT <>" filtering with multiples values

Hi COmmunity,

 

I Have a calculation like this:

Total =
SUM('BI-Despesas'[nVlrNomiB]) + SUM('BI-Despesas'[nVlrJuroB]) - SUM('BI-Despesas'[nVlrAbatB])
 
Super simple and working now I need to calculate with the filtes I´m using in the visuals;
 
Aucesar_0-1681740541185.png

 

How to write this? I tried some and worked with 1 filterd value, but I need to filter all those.

Thanks in advance!

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Try

Filtered Total =
CALCULATE (
    SUM ( 'BI-Despesas'[nVlrNomiB] ) + SUM ( 'BI-Despesas'[nVlrJuroB] )
        - SUM ( 'BI-Despesas'[nVlrAbatB] ),
    NOT 'BI-Despesas'[nCodCIPg] IN { 201, 999 },
    NOT 'BI-Despesas'[nCodGrPg] IN { 1001, 1002, 1003 }
)

View solution in original post

1 REPLY 1
johnt75
Super User
Super User

Try

Filtered Total =
CALCULATE (
    SUM ( 'BI-Despesas'[nVlrNomiB] ) + SUM ( 'BI-Despesas'[nVlrJuroB] )
        - SUM ( 'BI-Despesas'[nVlrAbatB] ),
    NOT 'BI-Despesas'[nCodCIPg] IN { 201, 999 },
    NOT 'BI-Despesas'[nCodGrPg] IN { 1001, 1002, 1003 }
)

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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