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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

Filter on Date but not Time

My objective: I have a column which contains a DateTime. I want to use it in a Visualisation, and be able to filter on the Date part only.   E.g. I want to filter all the records with a Date of 2nd February -- ignoring the Time part.

 

What I've tried: I set the format of the column to Date (as opposed to DateTime). But when I try to filter on the values, the Time part is apparently still being used.

 

filter pane.JPG

 

E.g. if I choose 2nd February, I get no results ... There are several records which have a DateTime on that day, but none of them have exactly 12:00 AM as the time part.

 

If I use basic filtering, I see multiple values for each Date:

 

 filter pane 2.JPG

 

How can I filter all records on 2nd February?  Many thanks for your help Smiley Happy

1 ACCEPTED SOLUTION

Try this:

 

Request Date = DATE(YEAR(Requests[Request Submitted Date]),MONTH(Requests[Request Submitted Date]),DAY(Requests[Request Submitted Date]))


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

5 REPLIES 5
Greg_Deckler
Community Champion
Community Champion

Well, one way would be to create a new column that is only a Date colum and not a DateTime column (as in the data type). You would just set it equal to your current date/time column.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks smoupre. I actually tried exactly that.

 

My new column definition reads:

Request Date = Requests[Request Submitted Date]

 

And the data type for this column is Date (not DateTime).

 

But the behaviour of both columns is the same, in the Filter pane. Is there another step I need to take? Thanks.

 

 

Try this:

 

Request Date = DATE(YEAR(Requests[Request Submitted Date]),MONTH(Requests[Request Submitted Date]),DAY(Requests[Request Submitted Date]))


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Smashing, that worked a treat. Thanks for your time & help -- much appreciated.

Awesome! 🙂



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors