Forum Discussion
Conditional Formatting with Icon based on two different Values
3 Replies
- amitchandakSuper User
Rosario , You have create an unichar measure and color measure
please find my example
Change logic as per need
/////Arrow
Arrow =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, UNICHAR(9650),
_change = 0, UNICHAR(9654),
_change < 0, UNICHAR(9660)
)
/////Arrow Color
Arrow color =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, "green",
_change = 0, "blue",
_change < 0, "red"
)You have to choose unichar you need also need use conditional formatting using field value option
UNICHAR - Tool for Custom Icon Formatting: https://www.youtube.com/watch?v=veCtfP8IhbI&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=50
https://exceleratorbi.com.au/conditional-formatting-using-icons-in-power-bi/
https://community.powerbi.com/t5/Desktop/FORMAT-icon-set-for-use-in-a-data-card/td-p/811692
https://exceleratorbi.com.au/dax-unichar-function-power-bi/- RosarioHelper I
Hi amitchandak thanks for your help, its good start, however, its not excalctly as I want for result C, D, E. Please my example.
I also need to know how to get the colour.
Thanks,
- AnonymousNot applicable
Hi Rosario ,
In order to get a better understanding on your requirement and give you a suitable solution, could you please provide more 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
In addition, you can refer the following links to get it.
Apply conditional formatting in tables and matrixes
Power BI Icon Names for Conditional Formatting Using DAX
Conditional Formatting Using Icons In Power BI
Best Regards