Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi all,
I have a table in PowerBi which has fields as below. I would like to conditionally format the response from the table to show the 'good' values as green and 'bad' values as red. The issue is that these vary dependent on value - 9 sleep is very good, whereas 9 stress is very bad. Is there a way to apply specific conditional formats to specific rows in PowerBi using a measure?
| Day 1 | Day 2 | Day 3 | ||
| Sleep | User 1 | 9 | 7 | 9 |
| Stress | User 1 | 9 | 3 | 1 |
| Sleep | User 2 | 4 | 7 | 1 |
| Stress | User 2 | 8 | 1 | 1 |
Solved! Go to Solution.
Hi @tomshaw83 ,
You can refer the following links to get it:
Apply conditional formatting in tables and matrixes
Power BI: Using a measure to set up conditional formatting
Conditional Formatting based on calculated measure
Measure = var V=CALCULATE(SUM('Table'[Value]))
return IF(V>R[R Value],"#FD625E",
IF(V>[A Value]&&V<R[R Value],"#F2C80F",
IF(V>G[G Value]&&V<R[R Value],"#01B8AA")))
If the above ones can't help you, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Hi @tomshaw83 ,
You can refer the following links to get it:
Apply conditional formatting in tables and matrixes
Power BI: Using a measure to set up conditional formatting
Conditional Formatting based on calculated measure
Measure = var V=CALCULATE(SUM('Table'[Value]))
return IF(V>R[R Value],"#FD625E",
IF(V>[A Value]&&V<R[R Value],"#F2C80F",
IF(V>G[G Value]&&V<R[R Value],"#01B8AA")))
If the above ones can't help you, please provide some raw data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 21 | |
| 14 | |
| 10 | |
| 5 | |
| 5 |