Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
In a clustered column chart i have for season 2023 the year 2022 and year 2023 that the revenue will fall in 2023 and for every year i have the weeks.i want to change the color in this year and the year before in a single clustered column chart.
Can anybody help please.
thank you
Solved! Go to Solution.
Hi, @VagelisVlachos
You can try the following methods.
Sample data:
Date Table:
Measure:
WeeksBeforeCurrentYear =
VAR SelectedYear = SELECTEDVALUE('Date'[Year])
RETURN
IF(YEAR(TODAY()) > SelectedYear, "#D6D600", "#BC1000")
Result:
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @VagelisVlachos
You can try the following methods.
Sample data:
Date Table:
Measure:
WeeksBeforeCurrentYear =
VAR SelectedYear = SELECTEDVALUE('Date'[Year])
RETURN
IF(YEAR(TODAY()) > SelectedYear, "#D6D600", "#BC1000")
Result:
Is this the result you expect?
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
11 | |
9 | |
6 | |
5 | |
4 |