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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

how to apply filter on column timestamp in direct query mode.filters should be year,month,day,hour

I have created a live connection between snowflake and power bi desktop and loaded a table into power bi using direct query mode.

I am having a date column of type timestamp. I want to apply filters as year,month,day and hour by taking values from date column.

Please suggest me a solution so that i could apply above filter.

1 ACCEPTED SOLUTION
dax
Community Support
Community Support

Hi snaketb, 

As I know, there is no slicer or filter could show data hierarchy based on date field, so I think you need to create column to show corresponding Year, month, and date, then apply these fields in filter or slicer. Because you use live connection, I think you need to do this in SSAS model(re-create year, month column in your project and deploy it to server)

321.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
dax
Community Support
Community Support

Hi snaketb, 

As I know, there is no slicer or filter could show data hierarchy based on date field, so I think you need to create column to show corresponding Year, month, and date, then apply these fields in filter or slicer. Because you use live connection, I think you need to do this in SSAS model(re-create year, month column in your project and deploy it to server)

321.PNG

Best Regards,
Zoe Zhi

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@dax I did the same and it worked. Thank you so much Zoe Zhi !

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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