Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi, I've got lots of metrics on my social media accounts and need the % Change colours formating. Since we have different brands, I want the % changes to be formatted in colour. However, I am using the Card "new" to visualise the metrics and reference values for the % Change. However, it will take a very long time using the reference values formatting as there are 4 "% Changes": TV vs. Last year, prev. month vs. month prior, qtr vs. last qtr, last qtr vs. YAG. Then I have the following metrics: Followers, reach, sentiment, shares, comments, likes, engagements......
Is there an easy measure I can use as the colour format? I tried the below but it did not work...
Example of the report:
Solved! Go to Solution.
Hi @Alpesh - you can simplify the color formatting by using a dynamic approach that doesn't require you to manually check each metric.
create each of your metrics has a corresponding % change measure. I have just segregatted the above measure dynamically to pic the same hexacode. please check and use below:
Color Format =
SWITCH(
TRUE(),
SELECTEDVALUE([% Change Followers]) > 0, "#73B761",
SELECTEDVALUE([% Change Reach]) > 0, "#73B761",
SELECTEDVALUE([% Change Sentiment]) > 0, "#73B761",
SELECTEDVALUE([% Change Shares]) > 0, "#73B761",
SELECTEDVALUE([% Change Comments]) > 0, "#73B761",
SELECTEDVALUE([% Change Likes]) > 0, "#73B761",
SELECTEDVALUE([% Change Engagements]) > 0, "#73B761",
SELECTEDVALUE([% Change Followers]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Reach]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Sentiment]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Shares]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Comments]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Likes]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Engagements]) <= 0, "#D82C20"
)
you can reuse the Color Format measure for each one if you have multiple new card visual, the above approach helps and saves the time.
Hope it helps.
Proud to be a Super User! | |
Hi @Alpesh - you can simplify the color formatting by using a dynamic approach that doesn't require you to manually check each metric.
create each of your metrics has a corresponding % change measure. I have just segregatted the above measure dynamically to pic the same hexacode. please check and use below:
Color Format =
SWITCH(
TRUE(),
SELECTEDVALUE([% Change Followers]) > 0, "#73B761",
SELECTEDVALUE([% Change Reach]) > 0, "#73B761",
SELECTEDVALUE([% Change Sentiment]) > 0, "#73B761",
SELECTEDVALUE([% Change Shares]) > 0, "#73B761",
SELECTEDVALUE([% Change Comments]) > 0, "#73B761",
SELECTEDVALUE([% Change Likes]) > 0, "#73B761",
SELECTEDVALUE([% Change Engagements]) > 0, "#73B761",
SELECTEDVALUE([% Change Followers]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Reach]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Sentiment]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Shares]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Comments]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Likes]) <= 0, "#D82C20",
SELECTEDVALUE([% Change Engagements]) <= 0, "#D82C20"
)
you can reuse the Color Format measure for each one if you have multiple new card visual, the above approach helps and saves the time.
Hope it helps.
Proud to be a Super User! | |
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 62 | |
| 54 | |
| 40 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 94 | |
| 83 | |
| 33 | |
| 32 | |
| 24 |