Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now
Hi
I need to add an up and down arrow image to my report which displays the arrow based on specific condition.
I have created a new measure show_image where
show_image = if sum(sales) > 1000 then 'Image url of up arrow' else 'Image url of down arrow'
The problem with this approach is that it returns the url of the image but I cannot format a measure to display the image URL. It can only be done with columns.
and If i use a column then it returns me both the URL.
Now is there a way to display just one result based on the condition.
Any help would be appreciated.
Thanks
Solved! Go to Solution.
Hi @tarun16feb,
It seems no green arrow in unichar. Maybe you can try to format the column. Please refer to Power-BI-Desktop-DAX-Using-Unicode-Arrows-as-Measures-in-a-Tabl.
Measure = IF ( MIN ( 'Table1'[Column1] ) < 600, UNICHAR ( 9650 ), UNICHAR ( 128315 ) )
Best Regards,
Dale
This video explains this very well:)
There are a few ways you can do this but the way I currently do this is based on the following:
1) Growth % Measure: %YoY = Divide(([CYTD] - [PYTD]),([PYTD]))
2) Secondary Measure for Icons included within the %YOY:
YOY%Icons =
VAR Arrow =
SWITCH (
TRUE (),
[%YoY] < 0, UNICHAR ( 8659 ),
[%YoY] = 0, UNICHAR ( 8660 ),
[%YoY] > 0, UNICHAR ( 8657 )
)
RETURN
FORMAT ( [%YoY], "Percent" ) & " " & Arrow
3) Create conditional formatting on that column or card.
If >0 then green, if <0 then red.
Final Result within card:
Please like this message if this helped you figure out a viable solution to your issue. 🙂
This worked perfectly for me, thanks you!
Hi everyone
I have the same situation but comparing weeks so basically its on a card and the number is showing a week but the arrow would compare with previous week. if this week number is higher then up and vice versa. this is the measure we created but dont know how to include the up and down arrow.
There are a few ways you can do this but the way I currently do this is based on the following:
1) Growth % Measure: %YoY = Divide(([CYTD] - [PYTD]),([PYTD]))
2) Secondary Measure for Icons included within the %YOY:
YOY%Icons =
VAR Arrow =
SWITCH (
TRUE (),
[%YoY] < 0, UNICHAR ( 8659 ),
[%YoY] = 0, UNICHAR ( 8660 ),
[%YoY] > 0, UNICHAR ( 8657 )
)
RETURN
FORMAT ( [%YoY], "Percent" ) & " " & Arrow
3) Create conditional formatting on that column or card.
If >0 then green, if <0 then red.
Final Result within card:
Please like this message if this helped you figure out a viable solution to your issue.
Hi.
Please follow the steps below.
- in the Values section, expand the options for the field you want the arrows.
- click Conditional formatting
- select Icons
- select the Style (the type of icon you want)
- set the rules
And you are done. 🙂
Let me know if this helps.
Thanks
Rohtashv
Hi @tarun16feb
Here is the solution I discovered,
use UNICHAR(9650) for up arrow and
I hope this helps.
Thanks,
Pragati Sidana
Thank you so much, I've been searching all day for this, Thank you!!
Glad I was of any help!!
Hi @tarun16feb,
Maybe you can use unichar instead. You can try it like this. You can find out more arrows here.
Measure = IF ( MIN ( 'Table2'[Column1] ) < 600, UNICHAR ( 11014 ), UNICHAR ( 11015 ) )
Best Regards,
Dale
Hi
Thanks for getting back.
I am looking for an upward triangle with green color and downward triangle with red color.
I couldn't find the colored ones. Can you please point me in the right direction.
Hi @tarun16feb,
It seems no green arrow in unichar. Maybe you can try to format the column. Please refer to Power-BI-Desktop-DAX-Using-Unicode-Arrows-as-Measures-in-a-Tabl.
Measure = IF ( MIN ( 'Table1'[Column1] ) < 600, UNICHAR ( 9650 ), UNICHAR ( 128315 ) )
Best Regards,
Dale
We cannot really say that Green up Arrow problem is solved because even if you give green color default in formatting and give condition to change it to RED COLOR Arrow in measure calculation, when you pin that tile/table to Dashboard it won't take Green color which is defaulted in formatting.
Dashboard can only accept colored Arrows/symbol which are given through measures.
Is there any formatting techniques Power BI has for Dashboards?
Check out the October 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
108 | |
108 | |
108 | |
90 | |
61 |
User | Count |
---|---|
171 | |
138 | |
132 | |
102 | |
86 |