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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cheny134
Frequent Visitor

How to compare YTD and monthly data in same chart?

I have a dataset like this.

 

DatePcsSize
2019/1/1100S
2019/2/1200S
2019/3/1300L
2019/4/1100L
2019/5/1200L
2019/6/1300L
2019/7/1100M
2019/8/1200M
2019/8/5300S
2019/8/10100L

 

How do I create a chart like this to comapre the % of Size (by pcs) in terms of specific month and YTD?

For example, in Aug --> S: 50%, M: 33%, L: 16%

                          YTD--> S: 32%, M: 16%, L: 53%

StackBarChart_YTD_Month.png

Thank you.

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

You will likely need to use the Disconnected Table Trick for this as this article demonstrates: https://community.powerbi.com/t5/Community-Blog/Solving-Attendance-with-the-Disconnected-Table-Trick...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi Greg,

 

Thanks for your reply. But I don't know how to apply Disconnected Table in my case. Can you give me more guidence? Tahnk you!

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.