cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Kurague Frequent Visitor
Frequent Visitor

add filters with calculation

Greetings everyone, I have been fiddling with my Power BI, and I can't seem to get this done right, so I'll resort on asking.

 

The problem here is, I need to COUNT all the values in "Idiomas", cept for "es, es-ES,es-41,es-419, es-tradnl and (blank space because this one has no value name to it)", and I just can't do it. I need to make the measure to use it in another calculation, so I can't use the "easy visual filter".

 

Any thoughts on this? Ask for any information you may need.

2 REPLIES 2
Kurague Frequent Visitor
Frequent Visitor

filters in measures

Greetings everyone, I have been fiddling with my Power BI, and I can't seem to get this done right, so I'll resort on asking.

 

The problem here is, I need to COUNT all the values in "Idiomas", cept for "es, es-ES,es-41,es-419, es-tradnl and (blank space because this one has no value name to it)", and I just can't do it. I need to make the measure to use it in another calculation, so I can't use the "easy visual filter".

 

Any thoughts on this? Ask for any information you may need.

Microsoft v-ljerr-msft
Microsoft

Re: add filters with calculation

Hi @Kurague,

 

If I understand you correctly, the formula below should work in your scenario. Smiley Happy

measure =
CALCULATE (
    COUNTA ( 'Table1'[Idiomas] ),
    FILTER (
        'Table1',
        'Table1'[Idiomas] <> "es"
            && 'Table1'[Idiomas] <> "es-ES"
            && 'Table1'[Idiomas] <> "es-41"
            && 'Table1'[Idiomas] <> "es-419"
            && 'Table1'[Idiomas] <> "es-tradnl"
            && 'Table1'[Idiomas] <> ""
            && 'Table1'[Idiomas] <> BLANK ()
    )
)

 

Regards

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors