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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Fusilier2
Frequent Visitor

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
Frequent Visitor

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
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.