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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
Fusilier2
Helper V
Helper V

Trying to get bar chart to show same month historically

Hi,

I'm trying to create a bar chart that, for the current month selected (e.g. May), shows sales values for every month of May in the data: May 2018, May 2019, May 2020, May 2021, May 2022, May 2023 etc

 

Is this possible in Power BI?

 

Thanks

2 REPLIES 2
Fusilier2
Helper V
Helper V

Ah, OK thanks, I'll try it.

AndrewPF
Helper V
Helper V

In Power Query, use the Date.Month function to create a new variable. 

Then put this new variable into a slicer. 

Change your chart so that the X-axis is categorical rather than continuous. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

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.