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
Sam7
Advocate II
Advocate II

Creating one bar chart with CY and (any PY - selected in Filter) on X-axis

Hello,

 

I have created two date tables, one for the actual date and the other to allow the end user to compare actual with any year/year-month etc

Sam7_1-1673021399909.png

This works below

Sam7_0-1673021354251.png

Now I want to put the results at month level on one clustered bar chart.  When I use my two measurs above it doesn't as I took the x-axis as from Actual Date table.  

 

How do I create bar charts, with the x-axix being months, but the months to be linked to the years chose in the slicer?

 

Thanks

2 REPLIES 2
Sam7
Advocate II
Advocate II

Thank you. This doesn't work as in the video, I want the x-axis to have MONTH and ANY YEAR SALES and COMPARER YEAR SALES selected to show in one bar chart. 

I do not know how to get MONTH thats linked to both date tables to show. Metric other than date work, but not date as this my SUM Measures are linked to the FILTERS of Actual and Comparer. 

amitchandak
Super User
Super User

@Sam7 , You need one slicer on an independent table.

 

refer

Power BI Abstract Thesis: How to use two Date/Period slicers

https://youtu.be/WSeZr_-MiTg

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors