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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register 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
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.