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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

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 Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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