Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello, I have this scatter chart that shows points for each year (here, points for year 2014), using a Play axis as well :
What I would like to do is have the points for the current year in blue, then year-1 in green, year-2 in yellow, and so on. So next year, my blue points will become green. How can I do this with a measure ?
Regards and thanks for your help,
Louis
Solved! Go to Solution.
Hi @Louis66 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create measures.
Measure = SELECTEDVALUE('Selected date'[Year])color = SWITCH(TRUE(),
MAX('Base'[Year])='Selected date'[Measure],"red",
MAX('Base'[Year])='Selected date'[Measure]+1,"blue",
MAX('Base'[Year])='Selected date'[Measure]+2,"yellow")
(3) Set conditional formatting and then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Louis66 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create measures.
Measure = SELECTEDVALUE('Selected date'[Year])color = SWITCH(TRUE(),
MAX('Base'[Year])='Selected date'[Measure],"red",
MAX('Base'[Year])='Selected date'[Measure]+1,"blue",
MAX('Base'[Year])='Selected date'[Measure]+2,"yellow")
(3) Set conditional formatting and then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.