Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

Comparing Data

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? 

 

1.JPG

1 ACCEPTED SOLUTION
v-janeyg-msft
Community Support
Community Support

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 ])

8.png

 

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.

View solution in original post

3 REPLIES 3
v-janeyg-msft
Community Support
Community Support

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 ])

8.png

 

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.

Anonymous
Not applicable

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. 

vanessafvg
Super User
Super User

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?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.