- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Compare Two Years
Hi, everyone!
I have timeline column with date for two years and column with values.
I need to visualize stacked area chart which will show comparison of values by years. I have set up my visualization as shown on image below:
But I need data to be shown on one timeline one year under another as shown below:
But I need to save Axis as on the first image to show detailed data with hours.
How can I visualize my data as I described?
I will be very grateful for your help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Anonymous
Would you like to set another year's values as a measure like below?
Please create a calendar table and manage the measure, reference:
https://community.powerbi.com/t5/Desktop/Last-year-month-value/m-p/332028
https://community.powerbi.com/t5/Desktop/This-year-vs-Last-year/m-p/793367
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Anonymous
Would you like to set another year's values as a measure like below?
Please create a calendar table and manage the measure, reference:
https://community.powerbi.com/t5/Desktop/Last-year-month-value/m-p/332028
https://community.powerbi.com/t5/Desktop/This-year-vs-Last-year/m-p/793367
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did not get it completely. But you can create a one year lag measure and plot the the current and this measure togther.
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s.
Refer
https://radacad.com/creating-calendar-table-in-power-bi-using-dax-functions
https://www.archerpoint.com/blog/Posts/creating-date-table-power-bi
https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
Winner-Topper-on-Map-How-to-Color-States-on-a-Map-with-Winners , HR-Analytics-Active-Employee-Hire-and-Termination-trend
Power-BI-Working-with-Non-Standard-Time-Periods And Comparing-Data-Across-Date-Ranges
Connect on Linkedin

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
11-07-2024 09:18 AM | |||
08-01-2024 10:02 AM | |||
05-27-2024 01:16 AM | |||
11-27-2024 03:35 AM | |||
10-11-2024 07:24 AM |
User | Count |
---|---|
122 | |
105 | |
85 | |
52 | |
46 |