Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
I have a line and clustered column chart which looks as follows (see below, always only showing the latest 3 years). How do I make sure that when the current year goes from 2018 to 2019, that automatically the 2019 data gets the 2018 color, 2018 gets the 2017 color, and 2017 gets the 2016 color? Just making sure that, when we go from 2018 to 2019, the three years get any of below three colors (without specifying which year gets which color) is also acceptable. Thank you.
Line and clustered column chart per year
@Anonymous,
You may add a calculated column to return -2, -1 and 0.
Hi @v-chuncz-msft,
Thank you for your quick response. But how would that work exactly? Because to dynamically change the last 3 years themselves (the numbers), I got that covered by setting a page level filter based on the following calculated column to 1:
IsInCurrentOrLastYearOrYearBeforeThatElectricity = IF(YEAR(NOW())=ElectricityTelemetryData[Jaar] || (YEAR(NOW())-1)=ElectricityTelemetryData[Jaar] || (YEAR(NOW())-2)=ElectricityTelemetryData[Jaar]; 1; 0)
But the problem is that I don't know how to associate a specific color with these years when the year changes.
Thanks again for any help.
User | Count |
---|---|
100 | |
66 | |
58 | |
47 | |
46 |