Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
manissethi
Regular Visitor

Color in scatter plot using calculated measure as text

Hi All,

 

I am trying to use a calculated measure to split a Risk Score value in my dataset into High/Medium/Low using slicer values and then using a calculated measure to show color of each transaction as Red - High, Yellow - Medium and Green - Low. 

This should be a fixed color scheme and not a divering one. 

 

Also will it be possible to add filtering on visuals using a calculated measure created for High/Medium/Low ?

Any help would be highly appreciated.

Thanks in advance.

1 ACCEPTED SOLUTION
v-diye-msft
Community Support
Community Support

Hi @manissethi 

 

Assuming that we have a sample with [Forename] [Score] and [Curriculum],  not sure if you’d like to show the value as below. If not, please help provide more details about your request.

 

Please note that create the slice using measure is not accessible, thus I use calculated column instead:

Slicer column = IF([Score]>3,"High",IF([Score]=3,"Medium",IF([Score]<3,"Low")))

Then use measure to set the conditional format :

Measure 2 = IF(MAX(Table1[Slicer column])="High","#FF0A18",IF(MAX(Table1[Slicer column])="Medium","#F0FF9A",IF(MAX(Table1[Slicer column])="Low","#00FF37")))

You can find the color code under Format pane.

7.png

Then

8.PNG

Finally:

9.png

Pbix attached here for your reference: https://wicren-my.sharepoint.com/:u:/g/personal/dinaye_wicren_onmicrosoft_com/EUBO626SMOpDoUWe-jgbZq...

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

View solution in original post

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hi @manissethi 

 

Assuming that we have a sample with [Forename] [Score] and [Curriculum],  not sure if you’d like to show the value as below. If not, please help provide more details about your request.

 

Please note that create the slice using measure is not accessible, thus I use calculated column instead:

Slicer column = IF([Score]>3,"High",IF([Score]=3,"Medium",IF([Score]<3,"Low")))

Then use measure to set the conditional format :

Measure 2 = IF(MAX(Table1[Slicer column])="High","#FF0A18",IF(MAX(Table1[Slicer column])="Medium","#F0FF9A",IF(MAX(Table1[Slicer column])="Low","#00FF37")))

You can find the color code under Format pane.

7.png

Then

8.PNG

Finally:

9.png

Pbix attached here for your reference: https://wicren-my.sharepoint.com/:u:/g/personal/dinaye_wicren_onmicrosoft_com/EUBO626SMOpDoUWe-jgbZq...

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Hi @manissethi 

 

If my above post helps, could you please consider Accept it as the solution to help the other members find it more quickly. thanks!

 

Best regards,

Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.