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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.