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
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
Super User
Super User

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

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
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.