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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
wonka1234
Helper III
Helper III

Show/Hide Up and Down Arrows based on if measure returns 1 or 0

hi,

 

I have a measure called "My Measure" and it returns 1 or 0.


ImageAVisibility = IF([My Measure] = 1, 1, 0)
ImageBVisibility = IF([My Measure] = 0, 1, 0)

if my measure returns 1, show the up arrows and hide the down arrow.

if my measure reutnrs 0, show the down arrow and hude the up arrow.

 

I have trouble implementing this with the arrows from insert->shapes.

 

How can I do this? I dont a web url or web image.

1 ACCEPTED SOLUTION
Irwan
Super User
Super User

hello @wonka1234 

 

i am not sure to hide shape but you can do by making the color transparent.

- Measure equal to 0

Irwan_2-1744325198467.png

 

- Measure equal to 1

Irwan_3-1744325227016.png

 

 

if this can accomodate your need, then you can tweak your DAX a little bit.

Measure 2 = 
IF(
    [Measure]=1,
    "#FFFFFF00",
    "#FF0000"
)
Measure 3 =
IF(
    [Measure]=0,
    "#FFFFFF00",
    "#FF0000"
)
Measure 2 for Up Arrow and Measure 3 for Down Arrow.
True value is "#FFFFFF00" is a code for transparent color, and False value is "#FF0000" is a code for red color (you can change the False value to any color code you want).
 
in Shape option -> Style -> Fill -> Condition Formating (Fx) -> choose Field Value -> select the measure for Up or Down Arrow
Irwan_4-1744325441806.png

do exact same method for border

Irwan_5-1744325533355.png

 

Hope this will help.

Thank you.

View solution in original post

1 REPLY 1
Irwan
Super User
Super User

hello @wonka1234 

 

i am not sure to hide shape but you can do by making the color transparent.

- Measure equal to 0

Irwan_2-1744325198467.png

 

- Measure equal to 1

Irwan_3-1744325227016.png

 

 

if this can accomodate your need, then you can tweak your DAX a little bit.

Measure 2 = 
IF(
    [Measure]=1,
    "#FFFFFF00",
    "#FF0000"
)
Measure 3 =
IF(
    [Measure]=0,
    "#FFFFFF00",
    "#FF0000"
)
Measure 2 for Up Arrow and Measure 3 for Down Arrow.
True value is "#FFFFFF00" is a code for transparent color, and False value is "#FF0000" is a code for red color (you can change the False value to any color code you want).
 
in Shape option -> Style -> Fill -> Condition Formating (Fx) -> choose Field Value -> select the measure for Up or Down Arrow
Irwan_4-1744325441806.png

do exact same method for border

Irwan_5-1744325533355.png

 

Hope this will help.

Thank you.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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 Solution Authors
Top Kudoed Authors