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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Filtering Matrix Visual

Hi all,

I want to put some more complex filters on the matrix visual.

Basically I want to only show

1) Avg Pos > 0. All those " - " in this column, I don't want them to show in the visual but I don't know how to do this.

OR 

2) Pos % Change > 0.1 or < -0.1.  -> This is already achieved by setting the filter in the picture.

mhsieh_0-1655152040765.png

Here are the DAX calculation for all those columns in the matrix:

 

Avg Pos = 
IF(
    ISBLANK(
        AVERAGE('GSC query analysis'[Position])
    ),
    "-",
    AVERAGE('GSC query analysis'[Position])
)

 

 

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

 

 

Pos % Change = 
IFERROR(
    ([Avg Pos] - [Prev Month Avg Pos]) / [Prev Month Avg Pos],
    "-"
)

 

You help is much appreciated!!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I have got it work myself by changing the DAX Calculation:

 

Avg Pos (Outliers) = 
        AVERAGE('GSC query analysis'[Position])
Prev Month Avg Pos (Outliers) = 
CALCULATE(
    [Avg Pos (Outliers)],
    DATEADD(
        'Calendar Lookup'[Start of Month],
        -1,
        MONTH
    )
)
Pos % Change = 
IFERROR(
    ([Avg Pos] - [Prev Month Avg Pos]) / [Prev Month Avg Pos],
    "-"
)

 And set the filter

mhsieh_0-1655238650282.png

 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

I have got it work myself by changing the DAX Calculation:

 

Avg Pos (Outliers) = 
        AVERAGE('GSC query analysis'[Position])
Prev Month Avg Pos (Outliers) = 
CALCULATE(
    [Avg Pos (Outliers)],
    DATEADD(
        'Calendar Lookup'[Start of Month],
        -1,
        MONTH
    )
)
Pos % Change = 
IFERROR(
    ([Avg Pos] - [Prev Month Avg Pos]) / [Prev Month Avg Pos],
    "-"
)

 And set the filter

mhsieh_0-1655238650282.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.