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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Kasiop
Helper II
Helper II

Simultaneously conditional filter on two fields

Hi, I need your help... here is my issue: To display my result, I am using a table based on a direct query view but I have duplicate: line 1 title (filled), description (filled), formula (not filled) line 2 title (filled), description (not filled), formula (filled) My question: Can I use the filter panel to filter on both fields; formula is not blank AND description is not blank. If I don't do it simultaneously, I am ending up with only one line at a time. Thank you for your suggestions. N
1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Kasiop - Create a measure like this:

Medida: IF(NOT(ISBLANK(MAX([formula]))) && NOT(ISBLANK(MAX([description])),1,0)

You can then filter by the measure.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
dedelman_clng
Community Champion
Community Champion

Hi @Kasiop  - 

 

If I understand what you're trying to accomplish (show all records that have at least one of description or formula), you can create this calculated column, then use it in the filter pane and set to "Y":

 

Show =
IF (
    OR (
        AND (
            NOT ( 'Table'[Description] = "" ),
            NOT ( ISBLANK ( 'Table'[Description] ) )
        ),
        AND ( NOT ( 'Table'[Formula] = "" ), NOT ( ISBLANK ( 'Table'[Formula] ) ) )
    ),
    "Y",
    "N"
)

 

2020-08-24 11_36_12-Window.png

 

Hope this helps

David

Greg_Deckler
Community Champion
Community Champion

@Kasiop - Create a measure like this:

Medida: IF(NOT(ISBLANK(MAX([formula]))) && NOT(ISBLANK(MAX([description])),1,0)

You can then filter by the measure.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Sadly is not working, I have an issue with () according to PBI
I used :
Measure 2 = IF(NOT(ISBLANK(MAX([solution]))) && NOT(ISBLANK(MAX([description])),1,0)) or
Measure 2 = IF(NOT(ISBLANK(MAX([solution]))) && NOT(ISBLANK(MAX([description])),1,0)
and I have an error in both "Operator or expression () is not supported"

You need a 3rd close paren after [description]

 

... NOT ( ISBLANK ( MAX ( [description] ) ) ),1, 0)

 

Hope this helps

David

Thanks a lot, indeed I had to add a )!!

And I have chanegd a little the formula:

Remove Duplicate = IF(ISBLANK(MAX([solution])) && (ISBLANK(MAX([description]))),1,0)
Thanks! It is working!!!

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.