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
Anonymous
Not applicable

Beginner: Slicer Not Recognizing Year

Thanks for your patience with a beginner question. I'm creating a simple dashboard for email metrics. The data spans 2019-2020 YTD, and looks like this:

 

DateDeliveredOpensClicks
Thursday, January 24, 201947191752229
Thursday, April 23, 202047751844233

 

When you set the slider timeline to span the year, such as "12/1/2019 - 4/30/2020," the visual puts the December 2019 data to the right of the April 2020 data, as if it is ignoring the year. What did I do wrong?

5 REPLIES 5
sanimesa
Post Prodigy
Post Prodigy

@Anonymous  Please add the Year and Month both from the Date Hierachy to the X-axis of the visual. Then expand the hierachy using the tree option on the visual. Finally, set the X-Axis type to categorical. Image attached below showing these steps. PBI help date hierachhy.png

Anonymous
Not applicable

Thanks so much for your help!

amitchandak
Super User
Super User

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

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
Anonymous
Not applicable

Yes, let me try again. My data spans 1/1/19 - 4/30/20.

 

Annotation 2020-05-09 151500.png

 

The graph is putting the Nov and Dec 2019 data to the right of Apr 2020. Why is this happening?

It looks like your visual is using a month column without using a year column too.  I would suggest you add a Year column also the x axis.  If you are using the default Date hierarchy, there should also be a Year column with each Date column.  It is recommended to disable that feature and have a separate Date table.  But in your case, you should just need to add a Year column also to X axis.  Without it, it is agreggating all the Aprils, Novembers, etc. together for all years.

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.