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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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