Forum Discussion

Haidannx's avatar
Haidannx
Helper I
6 years ago
Solved

Formatting Arrow in Card

Hello,

 

So i have a Single Value Card like below

I`d like to add a Green Arrow Up/ Red Arrow Down depends on the results of another DAX measure:

Measure = 

[Transaction from Yesterday] - [Transaction from the day before yesterday]
if the result >0 then there will be a Green Arrow Up stading next to the indicator and vice versa.
 
 
Anyone how can i achieved that ?
Many thanks
  • Haidannx 

     

    If you want to set it up yourself, you can follow these steps:

    1) Create a new measure for the arrow based on the measure it refers to:

     

    Arrow = IF([% Forecast vs Target]>0; 
                UNICHAR(11014); 
                UNICHAR(11015))

     

    2) Create a conditional formatting measure to return green or red:

     

    Arrow Condit Format = IF([% Forecast vs Target]>0; 2; 1)

     

    3) Create a new card visual and use the measure for the arrow as your value:

     

    4) Go to the formatting options for the visual and under "Data Label" select the elipsis to access conditional formatting options:

    5) Select the measure you have created for the conditional formatting and set the parameters.

    6) Drag the arrow visual on top of the value card visual. Select the arrow visual, go to Format and choose "Bring to front":

     

    7) (Optional) Select both card visuals by ctrl + clicking on each, right-click and select "Group".

     

    and you will get this result:

    You can of course use the conditional formatting measure to format other elements in the card visual:

     

  • Hi Haidannx ,

    You could reference my sample to have a try.

    Measure = IF([Diff] >= 0, [Diff] & "⇧", [Diff] & "⇩")
    
    Measure 2 = IF([Diff]>=0, "green","Red")

    Please see the attachment for more details.

     

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

5 Replies

  • PaulDBrown's avatar
    PaulDBrown
    Community Champion

    Haidannx 

     

    If you want to set it up yourself, you can follow these steps:

    1) Create a new measure for the arrow based on the measure it refers to:

     

    Arrow = IF([% Forecast vs Target]>0; 
                UNICHAR(11014); 
                UNICHAR(11015))

     

    2) Create a conditional formatting measure to return green or red:

     

    Arrow Condit Format = IF([% Forecast vs Target]>0; 2; 1)

     

    3) Create a new card visual and use the measure for the arrow as your value:

     

    4) Go to the formatting options for the visual and under "Data Label" select the elipsis to access conditional formatting options:

    5) Select the measure you have created for the conditional formatting and set the parameters.

    6) Drag the arrow visual on top of the value card visual. Select the arrow visual, go to Format and choose "Bring to front":

     

    7) (Optional) Select both card visuals by ctrl + clicking on each, right-click and select "Group".

     

    and you will get this result:

    You can of course use the conditional formatting measure to format other elements in the card visual:

     

  • Haidannx ,

     

    You can also use KPI card from visualization pane and enter relevent fields to get the result.

    Don't forget to give thumbs up 👍and accept this as a solution if it helped you.

  • v-xuding-msft's avatar
    v-xuding-msft
    Community Support

    Hi Haidannx ,

    You could reference my sample to have a try.

    Measure = IF([Diff] >= 0, [Diff] & "⇧", [Diff] & "⇩")
    
    Measure 2 = IF([Diff]>=0, "green","Red")

    Please see the attachment for more details.

     

    Best Regards,

    Xue Ding

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.