This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA 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.
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.
Solved! Go to Solution.
@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.
| YEAR | WEEK | % |
| 2017 | 2 | 81% |
| 2017 | 3 | 91% |
| 2017 | 4 | 54% |
| 2017 | 5 | 48% |
| 2017 | 6 | 67% |
| 2017 | 9 | 81% |
| 2017 | 11 | 25% |
| 2017 | 13 | 61% |
| 2017 | 15 | 80% |
| 2017 | 16 | 45% |
| 2017 | 17 | 77% |
| 2017 | 18 | 72% |
| 2017 | 19 | 52% |
| 2017 | 21 | 100% |
| 2017 | 22 | 48% |
| 2017 | 23 | 75% |
| 2017 | 24 | 20% |
| 2017 | 25 | 49% |
| 2017 | 26 | 77% |
| 2017 | 27 | 73% |
| 2017 | 28 | 29% |
| 2017 | 29 | 58% |
| 2017 | 30 | 78% |
| 2017 | 31 | 56% |
| 2017 | 32 | 48% |
| 2017 | 33 | 71% |
| 2017 | 34 | 83% |
| 2017 | 35 | 94% |
| 2017 | 36 | 57% |
| 2017 | 37 | 60% |
| 2017 | 38 | 61% |
| 2017 | 39 | 90% |
| 2017 | 40 | 58% |
| 2017 | 41 | 72% |
| 2017 | 42 | 69% |
| 2017 | 43 | 61% |
| 2017 | 44 | 55% |
| 2017 | 45 | 47% |
| 2017 | 46 | 54% |
| 2017 | 47 | 51% |
| 2017 | 48 | 48% |
| 2017 | 49 | 48% |
| 2017 | 50 | 72% |
| 2017 | 51 | 54% |
| 2017 | 52 | 37% |
| 2018 | 1 | 44% |
| 2018 | 2 | 61% |
| 2018 | 3 | 52% |
| 2018 | 4 | 61% |
| 2018 | 5 | 42% |
| 2018 | 6 | 51% |
| 2018 | 7 | 33% |
| 2018 | 8 | 10% |
| 2018 | 10 | 50% |
| 2018 | 11 | 41% |
| 2018 | 12 | 45% |
| 2018 | 13 | 84% |
Yes. But what I got is. It won't display all the weeks for 2017.
Change type as continuous to categorical under x axis properties.
Okay, Thank you.
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 25 | |
| 19 | |
| 14 |
| User | Count |
|---|---|
| 56 | |
| 48 | |
| 37 | |
| 21 | |
| 20 |