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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-yuezhe-msft
Employee
Employee

@dqian,

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


Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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