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
AvPowerBI
Post Patron
Post Patron

Which Visual to use if Increase or Decrease

Hi,

 

I am after a visual like something below, which it will show a arrown down if the % value is negative and arrow showing up if the % value is positive

 

 

AvPowerBI_0-1645806685480.png

The DAX I have that tells be the percentage is the below

 

% Headcount CM v PM =
1-(DIVIDE([Headcount SPLM],[Headcount]))
 
Which is based on the below
 
Headcount =
CALCULATE(
COUNTX(
FILTER('HR','Fact'[EmpStartDate]<=MAX('Dates'[Date])
&&
(ISBLANK('Fact'[EmpEndDate])
|| 'HR'[EmpEndDate]>MAX(Dates[Date]))),
'HR'[EmpId])
) + 0
 
Headcount SPLM =
CALCULATE(
[Headcount]+0,
PREVIOUSMONTH(Dates[Date])
)

 

 

Thanks

 

 

1 ACCEPTED SOLUTION

Hi, @AvPowerBI 

You need to create cards for arrown icon and data separately and apply custom color measure to the color of data lable.
1. create arrown icon card

image = IF([%Headcount CM v PM]<0,UNICHAR("9660"),UNICHAR("9650"))

 

30.png

2.create meausre 'color' and apply it to the color of card data label

color = IF([%Headcount CM v PM]<0,"red","green")

18.png

 

result:

31.png

32.png

Best Regards,
Community Support Team _ Eason

View solution in original post

3 REPLIES 3
mh2587
Super User
Super User

Use KPI Card this will give you the expected result


Did I answer your question? If so, please mark my post as a solution!


Proud to be a Super User!




LinkedIn Icon
Muhammad Hasnain



Hi @mh2587 

 

Thanks for your reply, I have used the KPI visualization but it does not give me a option to change the indicator icons, I want a triangle like my my picture but all it is showing is a tick icon if postive or and exclamation mark if negative

 

AvPowerBI_0-1645814053310.png

 

Are you aware of any other KPI visuals that I could use?

Hi, @AvPowerBI 

You need to create cards for arrown icon and data separately and apply custom color measure to the color of data lable.
1. create arrown icon card

image = IF([%Headcount CM v PM]<0,UNICHAR("9660"),UNICHAR("9650"))

 

30.png

2.create meausre 'color' and apply it to the color of card data label

color = IF([%Headcount CM v PM]<0,"red","green")

18.png

 

result:

31.png

32.png

Best Regards,
Community Support Team _ Eason

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.