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

See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap

Reply
Fusilier2
Resolver I
Resolver I

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
Resolver I
Resolver I

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
May PBI 25 Carousel

Power BI Monthly Update - May 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

Find out what's new and trending in the Fabric community.