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

Hi I am facing issue at one report for KPI arrow colors(Suggest calculated column or Measure)

Hi Team , 

I need your help for one report which is having ,

Arrow(upward/Downward)   Target   YTD   PYTD

 

The logic for arrow for ex. goal is in (goal 1,goal2 and goal3) and (YTD>PYTD ) is upward arrow with green color

and Red downward when goal is in (goal 1,goal2 and goal3) and (YTD<PYTD )

 

and for  goal is in (goal 4,goal5 and goal6) and (YTD>PYTD ) is upward arrow with REd color and

Green down when goal is in (goal 4,goal5 and goal6) and (YTD<PYTD )

 

I have column Goal, YTD,PYTD, Arrow ,YTDvsPYTD all working fine but not able to define color code can you please help with creating Calculated column or Measure for having colored arrows.

 

I tried but not getting answer.Conditional color formating also not working as desired.

 

Regards,

Arundhati

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You can have measures like these

 

Arrow =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, UNICHAR(9650),
_change = 0, UNICHAR(9654),
_change < 0, UNICHAR(9660)
)


/////Arrow Color
Arrow color =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, "green",
_change = 0, "blue",
_change < 0, "red"
)

 

 

you can use color in conditional formatting with the field value option

 

UNICHAR Tool for Custom Icon Formatting: https://www.youtube.com/watch?v=veCtfP8IhbI&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=50

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You can have measures like these

 

Arrow =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, UNICHAR(9650),
_change = 0, UNICHAR(9654),
_change < 0, UNICHAR(9660)
)


/////Arrow Color
Arrow color =
var _change =[Net Sales YTD]-[Net Sales LYTD]
return
SWITCH (
TRUE(),
_change > 0, "green",
_change = 0, "blue",
_change < 0, "red"
)

 

 

you can use color in conditional formatting with the field value option

 

UNICHAR Tool for Custom Icon Formatting: https://www.youtube.com/watch?v=veCtfP8IhbI&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=50

Anonymous
Not applicable

Hi Amit,

Thanks for solution similar logic worked for me.

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.