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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply

Filter Column in PowerBI Matrix visual by Measure filter

Hi guys,

 

it seems something relativtly basic in  my brain, you can filter rows without a problem by using the filter pane and a measure, but I was not able to filter the column by a measure, simply will not do anything.

 

I am looking at the measure DevMoM. It will calculate the variation between the figures in the column "Current CNS" - "Previous CNS", and for all the rest of the column will result in BLANK()

 

Dev MoM =
VAR Cur1 =
CALCULATE (
    SUM ( 'Current Cns'[QUANTITY] ),
    'Current Cns'[Source] = "Current CNS",
    FILTER ( ALL ( 'Analysis' ), 'Analysis'[Analysis] = "Current CNS" )
)
VAR Pas1 =
CALCULATE (
    SUM ( 'Current Cns'[QUANTITY] ),
    'Current Cns'[Source] = "Previous CNS",
    FILTER ( ALL ( 'Analysis' ), 'Analysis'[Analysis] = "Previous CNS" )
)
VAR PF2 = CALCULATE ( MAX ( 'Analysis'[Analysis] ) )
RETURN
IF (
    PF2 = "Actuals 2022" || PF2 = "Budget 23 R3" || PF2 = "Base Fcst WD7"|| PF2 = "Consensus Lag0" || PF2 = "Next 12M",
    BLANK(),
    IF(PF2 = "Previous CNS",0.001,Cur1 - Pas1)
)

 

I don't understand why the columns don't get filtered out when I tell DevMoM <>Blank or greater than 0 or lower than 0.

 

riccardoprade93_0-1690897957750.png

 

Thanks who can help!

 

1 REPLY 1
amitchandak
Super User
Super User

@riccardoprade93 , Based on what I got try like

 

IF (
PF2 = "Actuals 2022" || PF2 = "Budget 23 R3" || PF2 = "Base Fcst WD7" || PF2 = "Consensus Lag0" || PF2 = "Next 12M" || PF2 = "Previous CNS",
BLANK(),
Cur1 - Pas1
)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.