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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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