Forum Discussion
vjnvinod
1 year agoImpactful Individual
Icons or unichar code
hi i am looking fo the below SVJ or a unichar code to achieve this in power BI any help wil be highly appreciated
Bibiano_Geraldo
1 year agoSuper User
Hi vjnvinod ,
You can achieve that by DAX, something like this:
IconMeasure =
VAR icon = IF([YourCondition], UNICHAR(9650), UNICHAR(9660))
RETURN
icon & [YOUR_PERCENTAGE_MEASURE]
- vjnvinod1 year agoImpactful Individual
Bibiano_Geraldo its up and down triangle, i am looking for the one ihave shared in the post
- Bibiano_Geraldo1 year agoSuper User
Hi vjnvinod ,
Unfortunately, there isn’t a direct UNICHAR code for an arrow inside a circle.
But, you can reach your goal by these SVG Code:
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"> <!-- Background circle filled with red --> <circle cx="12" cy="12" r="10" fill="#FF0000"/> <!-- Arrow filled with white --> <path d="M12 12.586 8.707 9.293l-1.414 1.414L12 15.414l4.707-4.707-1.414-1.414L12 12.586z" fill="#FFFFFF"/> </svg>This result in
And this Code:
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24"> <!-- Background circle filled with green --> <circle cx="12" cy="12" r="10" fill="#00FF00"/> <!-- Arrow pointing up, filled with white --> <path d="M12 11.414 15.293 14.707l1.414-1.414L12 8.586 7.293 13.293l1.414 1.414L12 11.414z" fill="#FFFFFF"/> </svg>This will result in:
You can use this link to personilize the icons and download the SVG: https://nikitahl.github.io/svg-2-code/
- vjnvinod1 year agoImpactful Individual
not sure for some reason, it doesn't show the icon see below last coloumn, i have change the measure to Image URL based on chat gpt, and it still doesn't work
i am using this dax