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
Orgel
Helper I
Helper I

Doing a filter in query editor on date for "Is Latest" returning empty.

I am bringing in a dataset, and in the query editor on ther data set I want the datetime field to be set to "Is Latest"  I'm assuming that means only the rows with the latest datetime will be there.   So in this case 8/17 11:32:53 would be the latest.  When I choose "Is Lastest" from the filter arrow,  it comes back blank.  I'm not sure why because there is clearly data there.  

Orgel_0-1692290515245.png

Orgel_1-1692290702694.png

 

 

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @Orgel ,

try converting the column to date only instead of date time, i tried it and it filtered.

 

Idrissshatila_0-1692298263993.png

 

Idrissshatila_1-1692298275207.png

 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote For my Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

3 REPLIES 3
Idrissshatila
Super User
Super User

Hello @Orgel ,

try converting the column to date only instead of date time, i tried it and it filtered.

 

Idrissshatila_0-1692298263993.png

 

Idrissshatila_1-1692298275207.png

 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote For my Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Orgel
Helper I
Helper I

I'm not really looking to get anything based on id.  I just want the most current lines based on the datetime.  So in the above screenshot, the lines that say 8/17/2023 11:32:53am is would I want to keep.  In the filter drop down arrow, there is a selection for "Is Latest" date time filter, which I would think would keep the three latest lines.  But when I select it, the table comes back empty.

AbhinavJoshi
Resolver III
Resolver III

Hello @Orgel, if you are looking to get the latest date based on an ID, I'd advise to use a group by. In Power Query Editior, click on Group By your ID, once in the group by wizard, click on Advanced. In the aggregation part, add DateTime in the New column name, Max as the operation, and DateTime in the Column. Then click on Add aggregation and in the Operation, select all rows. I hope it works for you.

 

Thanks,

Abhinav

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.