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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors