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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is 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
Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

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.

Top Solution Authors