The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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 |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |