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
hans3400
Helper I
Helper I

Top N when year changes

Hi

I have a bar chart that shows how many invoices is being created on a monthly basis. I have a data set that goes back to Jan 2022. 

 

I only want to show the last 5 months in the report and so far it has worked fine. I have added the number for Jan 2023 and now the bar chart adds Jan 2022 and Jan 2023 together which is not what I want. I want it to show Sep, Oct, Nov, Dec and Jan which is the last 5 months. How can I do that?

 

Bar chart is set up this way: 
X-axis is month (value of date column is written like this: 2022 01, 2022 02, 2022 03 etc.)

Y-axis is number of invoices

 

Filter on date (month): Top N: Top 5 by value Latest Month.

 

I hope someone can help. 

 

Cheers

2 REPLIES 2
Padycosmos
Solution Sage
Solution Sage

Thank u for taking the time to help me! 🙂 

I have watched the video but it involves a lot of different slicers which is not something I want. I'm new ti PBI, so maybe I'm missing the hint in the video. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.