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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
IF
Post Prodigy
Post Prodigy

arrow change with date measure

Hi,

I use unichar to show the values with icons. When there is no value, i see the icon "(BLANK" which i don't like. I tried different things but it didn't work. Here is my measure:

ArrowTest2 =
VAR down = UNICHAR(9660)
VAR up = UNICHAR(9650)

VAR DIF = [PrevQty] - [SumQty]
RETURN
SWITCH(TRUE(),
       ISBLANK(DIF), "",
       DIF<=-0.3, up,
       DIF > -0.3, down,  "-")
 
I compare the result with the previous month. if there are values in measures or slicers, it works. However, it is not working when i choose a value from the slicers that doesn't have a value. I need to use separate tables for the slicer selections.
However i could not succeed with it, when i use switch. can you help me on this? the file is at: https://we.tl/t-uCXGWX8Mcn
thanks in advance
1 ACCEPTED SOLUTION

Thank you for you for the pbix, it make it easier. I try this:

Arrow =
VAR down = UNICHAR(9660)
VAR up = UNICHAR(9650)

VAR DIF = [PrevQty] - [SumQty]
RETURN
SWITCH(TRUE(),ISBLANK([PrevQty]),"",
       DIF<=-0.3, up,
       DIF > -0.3, down,  "-")
 
andhiii079845_1-1696756367499.png

 

Because 3+BLANK() is 3! You can change the RETURN to the DIF Variable, than you will see it.

Kennzahl = 3 + BLANK()
Bildschirm­foto 2023-10-08 um 11.12.43.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
andhiii079845
Solution Sage
Solution Sage

You mentioned in the post:
VAR DIF = [PrevQty] - [SumQty]

 

You use in PBI

VAR DIF = [SumPred] - [SumQty]

what is now the right DIF? 🙂




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Post was correct and your suggestion is working. thanks!!

lucadelicio
Super User
Super User

Hi,
try this measure:

Arrow =
VAR down = UNICHAR(9660)
VAR up = UNICHAR(9650)

VAR DIF = [SumPred] - [SumQty]
RETURN
SWITCH(TRUE(),
       DIF = 0, "",
       DIF<=-0.3, up,
       DIF > -0.3, down,  "-")


Luca D'Elicio

LinkedIn Profile

Hi,

Thanks. i checked it and it is not working with this option:

Q_02.png

Thank you for you for the pbix, it make it easier. I try this:

Arrow =
VAR down = UNICHAR(9660)
VAR up = UNICHAR(9650)

VAR DIF = [PrevQty] - [SumQty]
RETURN
SWITCH(TRUE(),ISBLANK([PrevQty]),"",
       DIF<=-0.3, up,
       DIF > -0.3, down,  "-")
 
andhiii079845_1-1696756367499.png

 

Because 3+BLANK() is 3! You can change the RETURN to the DIF Variable, than you will see it.

Kennzahl = 3 + BLANK()
Bildschirm­foto 2023-10-08 um 11.12.43.png

 

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors