Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi, I'm looking for a query that changes the background colour of cells based on the value of cells in a particular column:
In the below i'd like to show the "Jul score" as red or green. green if it = to "count of goals", red if it doesn't.
Similarly,
if you drill down into the matrix, these should also have a background colour based on the results of the "Count of Goals" column.
e.g., fixed asset management = red becasue count of goals = 6 and july score = 2
however inventory = red becasue count of goals = 4 and july score = 4.
Hope that is clear! thanks in advance.
Solved! Go to Solution.
@jonbox So, will depend on whether these are columns or measures. Let's say Count of Goals is using the Goals column and Jul score is a measure, then you could create a measure like:
Measure = IF(COUNT([Goals]) = [Jul score],1,2)
You could then use Conditional formatting to change the background color. You would choose Jul score in the Visualization field well, right-click, Conditional formatting, Background color. Use the new measure as the "What field should we base this on?" setting.
@jonbox So, will depend on whether these are columns or measures. Let's say Count of Goals is using the Goals column and Jul score is a measure, then you could create a measure like:
Measure = IF(COUNT([Goals]) = [Jul score],1,2)
You could then use Conditional formatting to change the background color. You would choose Jul score in the Visualization field well, right-click, Conditional formatting, Background color. Use the new measure as the "What field should we base this on?" setting.
IF(Count of Goal = Jul score,"Green","Red")
Did I answer your question? If so, please mark my post as a solution!
Proud to be a Super User!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
98 | |
97 | |
81 | |
77 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |