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.
Hi,
I have some value data from 2006 till 2020 on monthly basis from a meter and a new value will be uploaded in PBI each month. If I want to compare this information in a way I have month on X-axis and Value on Y-axis and can select/compare; for example, the last 3 yrs or 5 yrs, what should I do?
Solved! Go to Solution.
Hi, @Anonymous
It’s my pleasure to answer for you.
According to your description,I think you can create a calculated column ,then use it in the legend.
Like this:
year = YEAR(Table1[merged ])
Here is my sample .pbix file.Hope it helps.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Anonymous
It’s my pleasure to answer for you.
According to your description,I think you can create a calculated column ,then use it in the legend.
Like this:
year = YEAR(Table1[merged ])
Here is my sample .pbix file.Hope it helps.
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
The objective is to compare this year's values with any combination of previous years values. For example, 2020 with 2019, but also 2020 with 2017, 2018, 2019.
can i ask what you are looking for? there are different ways of comparing for example you could compare last year to this year by creating 2 different measures. You could also look for correlations based on categories. what is your objective?
Proud to be a Super User!