Forum Discussion

admin11's avatar
admin11
Icon for Memorable Member rankMemorable Member
5 years ago
Solved

How to make different year different color

Hi All

I have a bar chart with YrMth , i like to make every year different colour , may i know how to do it ?

Below is my PBI file :-

https://www.dropbox.com/s/viufpu6mii49nf5/PBT_V2021_392%20TI_SI_GL%20SAMPLE%20-%20diff%20yr%20diff%20color.pbix?dl=0

 

Paul

 

  • admin11 , Try a color measure like

     

    Switch(max('Date'[year]),
    2019, "green",
    2020, "blue",
    2021, "red",
    "grey"
    )

     

     

4 Replies