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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Janoshz
Frequent Visitor

100% stacked column year comparison

Hello,

How can I compare year by year with slicers using 100% stacked column chart? 

Years should show beside each other in the 100% visual. Ie. I choose from the slicer years 2021 and 2022 and they would show side by side.

Thanks..

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @Janoshz ,

 

You need to create a calendar table and connect it to the fact table.

vcgaomsft_0-1673336110265.png

Create year slicer.

vcgaomsft_1-1673336193686.png

Create a 100% stacked bar chart, note that please change the type of the x-axis from continuous to category.

vcgaomsft_2-1673336300235.png

vcgaomsft_3-1673336334873.png

Result:

vcgaomsft_4-1673336370441.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

2 REPLIES 2
v-cgao-msft
Community Support
Community Support

Hi @Janoshz ,

 

You need to create a calendar table and connect it to the fact table.

vcgaomsft_0-1673336110265.png

Create year slicer.

vcgaomsft_1-1673336193686.png

Create a 100% stacked bar chart, note that please change the type of the x-axis from continuous to category.

vcgaomsft_2-1673336300235.png

vcgaomsft_3-1673336334873.png

Result:

vcgaomsft_4-1673336370441.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

negi007
Community Champion
Community Champion

@Janoshz You can create a visual like below

negi007_0-1672914768678.png

 




Did I answer your question? Mark my post as a solution!
Appreciate your Kudos



Proud to be a Super User!


Follow me on linkedin

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.