cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
mhsieh
Helper II
Helper II

filter matrix visual on multiple column condition

Hi everyone,

I need help doing some visual filter on matrix across multiple columns. (please see below screenshot)

If [Sum Clicks] and [Prev Month Sum Clicks] are both 0 at the same time (MUST be both 0 at the same time), I don't want it to show in the matrix. How do I do that? 

mhsieh_0-1655311906454.png

Both columns are measures. Including the Dax Calculation here if that helps:

 

Sum Clicks = 
IF(
    ISBLANK(
        SUM('GSC query analysis'[Clicks])
    ),
    0,
    SUM('GSC query analysis'[Clicks])
)

 

 

Prev Month Sum Clicks =
CALCULATE(
    [Sum Clicks],
    DATEADD(
        'Calendar Lookup'[Start of Month],
         -1,
          MONTH
    )
)

 

Your help is much appreciated!! 

1 ACCEPTED SOLUTION
PaulDBrown
Community Champion
Community Champion

Try:

Sum clicks not 0 =

IF(AND([Sum clicks] ==0, [Prev Month Sum Clicks] ==0), BLANK(), [Sum Clicks])

 

Prev Month Sum clicks not 0 =

IF(AND([Sum clicks] ==0, [Prev Month Sum Clicks] ==0), BLANK(), [Prev Month Sum Clicks])





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

2 REPLIES 2
PaulDBrown
Community Champion
Community Champion

Try:

Sum clicks not 0 =

IF(AND([Sum clicks] ==0, [Prev Month Sum Clicks] ==0), BLANK(), [Sum Clicks])

 

Prev Month Sum clicks not 0 =

IF(AND([Sum clicks] ==0, [Prev Month Sum Clicks] ==0), BLANK(), [Prev Month Sum Clicks])





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






This method works!! Thank you so much!

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors