Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
I have different countries in my data and I would like to have different conditional formatting between countries for the same measure/metric. My fact tables are connected to a Team table which has a column Country filled for each team. That means each of the fact table rows can be connected to country information.
How should I modify the aforementioned "Condition measure" to take this into consideration? I would like to have Diverging red-yellow-green conditional formatting with these boundaries for example:
If team[country] = Norway then boundary for red is 1, for yellow 2, for green 3
if team[country] = Germany then boundary for red is 10, for yellow 20, for green 30
etc.
HI @Anonymous ,
You can consider to write a measure to check conditions and return color code, then enable conditional formatting features based on measure value.
Regards,
Xiaoxin Sheng
Hi @Anonymous
Thanks. Would it be possible to show an example DAX in practise?
If I have for example very basic CALCULATE(SUM('(fact) invoicing'[amount])) as a measure and for each row in Invoicing table I have team_id identifier which is connected to a Team table where we have the country information. For conditional formatting we would have [amount] and [Country] as the two fields to define traffic light.
Hi @Anonymous ,
Can you please share some sample data with expected result for test?
Regards,
Xiaoxin Sheng
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 20 | |
| 20 | |
| 12 |
| User | Count |
|---|---|
| 63 | |
| 56 | |
| 47 | |
| 44 | |
| 37 |