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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
ANDYPICKFORD
New Member

Comparing data when using slicers

Hi everyone,

 

I'm fairly new to Power BI. I've created some visuals with lots of metrics displayed in cards and I've added a number of filters to allow people to see how those metrics change depending on which segment of the overall audience they are interested in. To make the data more meaningful, for each card, I want to be able to show whether the filtered data is higher or lower than the whole population by applying some conditional formatting.

Anyone tried to do this before?

Is there a better visualisation for doing this than the cards?

 

Any guidance much appreciated

 

Andy

1 REPLY 1
v-yanjiang-msft
Community Support
Community Support

Hi @ANDYPICKFORD ,

According to your description, I create a sample below.

vyanjiangmsft_0-1684746799330.png

For example we want to compare the average sales of the types we selected in slicer and the average sales of all types, here's my solution, create a measure.

AVG =
AVERAGE ( 'Table'[Sales] )
Color =
IF ( [AVG] >= CALCULATE ( [AVG], ALL ( 'Table' ) ), "red", "blue" )

Then in card visualizations formatting>Effects>Backgroud, click the button "fx"

vyanjiangmsft_1-1684747205933.png

Select color measure in the dialog.

vyanjiangmsft_2-1684747361004.png

Result:

vyanjiangmsft_4-1684747448902.png

vyanjiangmsft_3-1684747431853.png

I attach my sample below for your reference.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Best regards,

Community Support Team_yanjiang

 

 

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.