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
Anonymous
Not applicable

Up and down Arrows

Hi Experts 

 

I am trying to add up and down arrows to a KPI Visual and no luck 

 

Here is a post i found on line from the community (scroll down to the reply after community memeber) 

Link: https://community.powerbi.com/t5/Desktop/Embedding-up-and-down-arrows-in-visual-and-changing-them-ba...

 

Here are my measures

CurrentLessPreviousMonth =
VAR Red = UNICHAR(9660)
VAR GREEN = UNICHAR(9650)
Return
if([CaseCount]-[PreviousMnthCases]>0,Green,Red)
 
and
Arrows = IF([CurrentLessPreviousMonth]>0,1,0)
 
i cannot get it to work...as i have text in the first measure and integer in second...
 
HELP..
1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Anonymous 

You can do this with Custom String Formatting to give you the arrows

https://www.myonlinetraininghub.com/custom-formatting-strings-in-power-bi 

 

Select your measure and in the Format string area type (or copy/paste this)  "▲";"▼";  which will display ▲ for positive values and ▼ for negative values

 

The code for ▲ is ALT+30 and ▼ is ALT+31

Arrow Symbols: Left, Right, Up and Down Arrow (alt-codes.net)

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

9 REPLIES 9
PhilipTreacy
Super User
Super User

Hi @Anonymous 

Here's an example file you can download

which is based on this tutorial

Key Performance Indicator (KPI) visuals - Power BI | Microsoft Docs

 

You'll see that the Indicator measure in the KPI is formatted using a custom string to indicate if this year's peformance is better or worse than last year's

 

"▼ $"#0,000;"▲ $"#0,000;

 

kpis.png

 

Note that in this instance a positive value is worse.

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


PhilipTreacy
Super User
Super User

Hi @Anonymous 

You can do this with Custom String Formatting to give you the arrows

https://www.myonlinetraininghub.com/custom-formatting-strings-in-power-bi 

 

Select your measure and in the Format string area type (or copy/paste this)  "▲";"▼";  which will display ▲ for positive values and ▼ for negative values

 

The code for ▲ is ALT+30 and ▼ is ALT+31

Arrow Symbols: Left, Right, Up and Down Arrow (alt-codes.net)

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


@PhilipTreacy 
Thank you!

Anonymous
Not applicable

Hi Phil

 

Do you have an example please

Hi @Anonymous 

I linked to an article with lots of examples.

regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Tahreem24
Super User
Super User

@Anonymous ,

Create a measure like below:

Arrow = IF(yourMeasure >0,UNICHAR(9650),UNICHAR(128315))

 

 

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

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

Hi Tahreem, How do i apply the CF rule to the Arrow measure???

@Anonymous ,

Just take that Arrow measure in your table and go to field formatting option of the table visual then Select Arrow from drop down then set the font color to Green.

In below screen shot I did same i.e. if Status value is greate than 25 so Green else Red.

Capture.PNG

 

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

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
Anonymous
Not applicable

Hi Tahreem 

 

can you apply this to a card visual...is what i need

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.