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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
emilyhch
Frequent Visitor

Month and Year Filters for Dates with Data from SQL database

Hi there! 

 

I am trying to create a month and a year filter for my dashboard. However, based on the research my team have done, it looks like if the data is linked with a SQL database, we are unable to modify some of the setting to make Power BI see the dates as how it would see it when the data is linked through excel.

 

Current situation: My date data shows "date" (screenshot 1) but the little calendar icon doesn't showing up in the Report View(screenshot 2) and I cannot create the hierchay to create the month and year filters. Attaching a couple screenshots to explain the situation. 

screenshot 1

emilyhch_0-1715032405467.png

screenshot 2

emilyhch_1-1715032473419.png

screenshot 3 (what it should look like) 

emilyhch_2-1715032543122.png

 

My understanding is if that calendar icon is present (screenshot 3), I would be able to use the hiarchay to create the month and year filter but I couldn't find a way to make that icon show up. What can I do to create these filters for my data? I also need it do see it as date because I want to calculate the days between the created date and completed date.

 

Thank you very much! 

 

Emily 

1 ACCEPTED SOLUTION
vicky_
Super User
Super User

Please check if you have a M:1 relationship between the createdDate and another date column (especially with a date / calendar table). If you have that relationship, then you need to use the Date Heirarchy in the 1 side (i.e the date table). You can read: https://community.fabric.microsoft.com/t5/Community-Blog/Why-there-is-no-date-hierarchy/ba-p/2266682 for more details

 

If you don't want to use that date table (for whatever reason), you could add column(s) to your table to grab the year / month to use in your slicer. But that is not best practice.

View solution in original post

1 REPLY 1
vicky_
Super User
Super User

Please check if you have a M:1 relationship between the createdDate and another date column (especially with a date / calendar table). If you have that relationship, then you need to use the Date Heirarchy in the 1 side (i.e the date table). You can read: https://community.fabric.microsoft.com/t5/Community-Blog/Why-there-is-no-date-hierarchy/ba-p/2266682 for more details

 

If you don't want to use that date table (for whatever reason), you could add column(s) to your table to grab the year / month to use in your slicer. But that is not best practice.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.