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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
PBI_newuser
Post Prodigy
Post Prodigy

How to display scores in different color and include "Date" play axis?

Hi, I would like the city to change color based on the NPS score for the date. Below is the sample data. I would like to have the average NPS score by city. How to have the "date" play axis to view the NPS score in each city from day to day?

 

  • NPS score – 9 to 10 – Green
  • NPS score – 8 - Yellow
  • NPS score – 0 to 7 - Red

 

DateCityJobNPS
07/11/2021NYJ-1232
07/11/2021OHJ-2347
07/11/2021OHJ-3459
07/11/2021OHJ-4568
07/11/2021CAJ-5679
07/11/2021CAJ-6785
07/11/2021TXJ-7894
07/11/2021OHJ-9003
07/11/2021OHJ-10117
07/12/2021TXJ-11229
07/12/2021TXJ-123310
07/12/2021TXJ-13446
07/12/2021NYJ-14559
07/12/2021CAJ-15664
07/13/2021TXJ-16775
07/13/2021CAJ-17887
07/13/2021CAJ-18999
07/13/2021CAJ-20104
07/13/2021OHJ-21218
07/13/2021OHJ-22329

 

PBI_newuser_0-1629721461964.png

 

2 REPLIES 2
amitchandak
Super User
Super User

@PBI_newuser , Create a measure like below and use that in conditional formatting using field value option

 

Assuming NPS is measure or use sum(Table[NPS]) or avg as per need

 

Switch(true(),

[NPS]>= 9,  "Green",

[NPS]>= 8,  "Red",

"Yellow"

)

 

If need add Play axis visual from custom visual and put date on that

 

refer if needed

How to do conditional formatting by measure and apply it on pie?: https://youtu.be/RqBb5eBf_I4

How to use Play Axis Visual: https://www.youtube.com/watch?v=dhClPq0cPvE&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=34

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi @amitchandak , I am not sure why the chart didn't display all the Average NPS results on the specific date  but it shows by city.

For example, I would like the chart to display all the NPS results on 1st July when I click play on the Play Axis.

Now when I click the play button on Play Axis, it shows city by city on 1st July.

PBI_newuser_0-1629764018392.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors