March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I've created a chart which shows based on user date slicer 3 previous years. So if user select May 2022 then it shows May 2020-2022
I want the every bar to have its own color always. So the smallest number in date always color X (2020), medium color Y (2021), biggest color Z (2022). If user select May 2020 then 2018 - X color, 2019 - Y color, 2020 - Z color
Is it something to achieve? Every bar should have separate color (the same) despite the selection
Solved! Go to Solution.
Hi, @Pbiuserr ;
1.create a new table as slicer date.
slicer = VALUES('Table'[date])
2.create a flag measure ,then apply it into visual filter.
flag = IF(MAX('Table'[date])<=MAX('slicer'[date])&&YEAR(MAX('Table'[date]))>YEAR(MAX('slicer'[date]))-3,1,0)
3.create a conditional's measure.
conditional = IF([flag]=1,RANKX(ALLSELECTED('Table'),CALCULATE(YEAR(MAX('Table'[date]))),,ASC,Dense))
4.set condition.
The final output is shown below:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Pbiuserr ;
1.create a new table as slicer date.
slicer = VALUES('Table'[date])
2.create a flag measure ,then apply it into visual filter.
flag = IF(MAX('Table'[date])<=MAX('slicer'[date])&&YEAR(MAX('Table'[date]))>YEAR(MAX('slicer'[date]))-3,1,0)
3.create a conditional's measure.
conditional = IF([flag]=1,RANKX(ALLSELECTED('Table'),CALCULATE(YEAR(MAX('Table'[date]))),,ASC,Dense))
4.set condition.
The final output is shown below:
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Requirement is to have X axis Year-Month like 2020 May etc
Colors change when I change selection
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |