Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
I have a card visual in my report where I display some operational statuses, so the callout value is text.
I need to color code those values so they are more easily seen in the report page. To do that, I have created a calculated column, assigning a value on a scale from 1 to 10 based on values, and then assigned Conditional Formatting to the callout value based on that scale.
However, I don't seem to find a way to use the values without a summarization:
Any suggestions on how to solve this problem?
Thanks!
Solved! Go to Solution.
@Anonymous the point is, you must insert in the conditional formatting a measure which retrieves a single value of the calculated column.
So, you must create a function which retrieves the MAX value of the calculated column. For example:
CALCULATE(MAX('TableName'[Color Coding]),"apply here any filter table function if necessary")
If the function above doesn`t work or you don`t understand, post a image of how you are filtering your visualization because how you filter will determine what values are retrieved from the colum "Color Coding"
@Anonymous the point is, you must insert in the conditional formatting a measure which retrieves a single value of the calculated column.
So, you must create a function which retrieves the MAX value of the calculated column. For example:
CALCULATE(MAX('TableName'[Color Coding]),"apply here any filter table function if necessary")
If the function above doesn`t work or you don`t understand, post a image of how you are filtering your visualization because how you filter will determine what values are retrieved from the colum "Color Coding"
@Anonymous,
Solved! I didn't notice that I could use a measure!
This works just fine!
Color =
CALCULATE(
MIN(Teamsissuenotifications[Color Coding]),
FILTER(Teamsissuenotifications, MAX(Teamsissuenotifications[Timestamp]))
)
Thanks!
Glad to have helped!
Cheers!
@Alienvol, firstly I'd suggesting posting a sample of your data and data model in order to figure out the data structure.
Well, the way to retrieve a single value from a measure (scalar value) without summarizing it, it is to apply MAX, MIN and apply a filter table function within the table expression of these functions.
@Anonymous,
Thanks for the reply.
This is a snapshot of the table:
As mentioned, the last field, "Color coding" is a calculated column that assigns a number from 1 to 10 based on the "Status" field.
The Card retrieves the last "Status" from the table. What's not clear to me is if the filtering on the card reflects in the Conditional Formatting function or if the function applies to the values of the entire table.
I hope this helps!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
76 | |
57 | |
36 | |
34 |
User | Count |
---|---|
99 | |
56 | |
56 | |
46 | |
40 |