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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
waydec
Frequent Visitor

Date and time filtering

Hi,

 

I'm looking for a way to show information for a user selectable period using a single datetime field.  This datetime field shows the date and time that a job was created in our job management system.    Using this datetime field I want to be able to select a datetime from and to range, i.e. the start date and the start time as well as the end date and end time.  There is a requirement to be able to filter on the time component given the nature of our reporting needs.  The existing Power BI stock visuals do not have a visual with this ability so I'm wondering if there is a way of doing this through DAX, custom visuals or otherwise..

 

Any help will be greatly appreciated.

 

Kind regards,

Wayde

1 ACCEPTED SOLUTION
waydec
Frequent Visitor

Hi Ibendlin,

 

Perhaps I was not clear on what I'm looking for but for now I've solved my own issue by copying the datetime column to a new column in the same table, changing the datatype of the new column to a decimal with 4 decimal places and using the decimal number in the new column to filter out the data for the datetime from and to periods I need.  I will build a converter table that looks up the actual date and time the date time serial number represents to make it easier for the users.

 

Thanks for your help.

Waydec

 

View solution in original post

2 REPLIES 2
waydec
Frequent Visitor

Hi Ibendlin,

 

Perhaps I was not clear on what I'm looking for but for now I've solved my own issue by copying the datetime column to a new column in the same table, changing the datatype of the new column to a decimal with 4 decimal places and using the decimal number in the new column to filter out the data for the datetime from and to periods I need.  I will build a converter table that looks up the actual date and time the date time serial number represents to make it easier for the users.

 

Thanks for your help.

Waydec

 

lbendlin
Super User
Super User

Enable "Allow users to change filter types"  and teach your users how to use the filter pane. That will give you exactly the functionality you are looking for.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.