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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
dqian
Frequent Visitor

Display data with different time duration together

I have to show weekly data in two years together, in which the data in previous year has 52 weeks, and the data in current year has YTD. I would like to know how to show them together like the picture below (green for prevous year, orange for current year). Thank you.

 

WeeklyData.png 

2 ACCEPTED SOLUTIONS

Hi @dqian,

 

Please mark my response as solution, if it really healped you. Smiley Happy

 

Regards,

Atish

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

@dqian,

Could you please share dummy data of your table? For the previous year, do you still want to calculate YTD?


Regards,
Lydia

Hi Lydia, thank you for your response. Below is my dummy data. I want to show the both 2017 and 2018 year's percentage together.

 

YEARWEEK%
2017281%
2017391%
2017454%
2017548%
2017667%
2017981%
20171125%
20171361%
20171580%
20171645%
20171777%
20171872%
20171952%
201721100%
20172248%
20172375%
20172420%
20172549%
20172677%
20172773%
20172829%
20172958%
20173078%
20173156%
20173248%
20173371%
20173483%
20173594%
20173657%
20173760%
20173861%
20173990%
20174058%
20174172%
20174269%
20174361%
20174455%
20174547%
20174654%
20174751%
20174848%
20174948%
20175072%
20175154%
20175237%
2018144%
2018261%
2018352%
2018461%
2018542%
2018651%
2018733%
2018810%
20181050%
20181141%
20181245%
20181384%

Hi @dqian,

 

Just tried with your data. I believe this is what you are looking for.data.png

Yes. But what I got is. It won't display all the weeks for 2017.

 

Capture.PNG

Change type as continuous to categorical under x axis properties.

 

data1.png

Okay, Thank you.

Hi @dqian,

 

Please mark my response as solution, if it really healped you. Smiley Happy

 

Regards,

Atish

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.