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
Anonymous
Not applicable

Wrong calculation in DAX Measure for Unichair

Dear all,

 

I try to create arrows based on a trend line, if trend is higher than 1, arrow should go up, otherwise down and I am working with Unichair to achieve this.

Measure:

Trend Arrow ACT vs. PY =
IF([Trend ACT vs. PY]>1, UNICHAR (11165), UNICHAR(11167))
 
however for some reason, all the arrows are facing down as seen in the picture. If I test with another formula with text, it works perfectly 
Measure: Check = IF([Trend ACT vs. PY]>1, "more than 1", "less than 1") -> see screenshot below
 
Strange enough, if I use different Unichar it works as well, just with the arrows it doesn't work (it works if I use one arrow and one something else, but as soon as I want both, it doesnt).
 
Anyone any idea what I do wrong? Or alternative arrows which I could use, which allow conditional formatting, which I need to be consistent in my dashboard?
Thanks in advance helping me out here, after spending one evening finding a solution...
Nualos
Test Table for Arrows with supporting columns.png

 

 
2 REPLIES 2
vicky_
Super User
Super User

Could you try use the Icons instead of Unichars? If you go to Format Visuals > Cell Elements > Icons, you could get a very similar result for trend arrows (just replace the sum of Qty with your measure).

vicky__1-1670277809834.png

 

 

Anonymous
Not applicable

Der Vicky, thanks for your fast replay. Yes, this would work in the table, however I use this measures later in the visual "cards". Here it doesn't work anymore, I can only do conditional formatting on the color, but not add icons. But for the table this looks very nice (and correct :)) indeed.

Thank you.

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.