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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.