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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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.