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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
zeke1970
Regular Visitor

Return Earliest Timestamp Based on Filter Selection

Hello,

 

I have been reseraching but cannot find the result I am looking for.   I want PowerBI to return the earliest timestamp based on Date slicer and customer slicer.

For example, if user selects Date 5/31/2025 and Customer A, I want PowerBI to return in table form:

 

Customer     Item                Purchase Date

A                  mushroom        5/31/2025 11:13:09 AM

 

Any assistance is appreciated!

 

 

 https://drive.google.com/file/d/1VbLxk4i6IOCc9-0a4vel-y3Q0KEcPP8P/view?usp=drive_link 

2 ACCEPTED SOLUTIONS
Ashish_Excel
Solution Supplier
Solution Supplier

Hi,

Download PBI file from here.

Hope this helps.

Ashish_Excel_0-1748745154633.png

 

View solution in original post

v-ssriganesh
Community Support
Community Support

Hi @zeke1970,
Thank you for reaching out to the Microsoft fabric community forum.

I’ve reproduced your use case and confirmed that I’m getting the expected output based on your requirements:

  • Earliest timestamp record displayed as per slicer selection.
  • Only the single row with the earliest timestamp appears.

Output:

vssriganesh_0-1748837647714.png

 

For your reference, I’m attaching the .pbix file with the implemented solution.

Thank you, @Ashish_Excel & @speedramps for sharing your valuable insights.


If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.

View solution in original post

10 REPLIES 10
speedramps
Community Champion
Community Champion

@zeke1970 

Thaks for accept 2 solution.
Please can you also accept mine.

It was one of the first and all the solutions work.

The points help reflect my competency and your gratitude.

Thank you for your assistance in the matter

 

v-ssriganesh
Community Support
Community Support

Hello @zeke1970,

Could you please confirm if your query have been resolved? If they have, kindly mark the helpful response and accept it as the solution. This will assist other community members in resolving similar issues more efficiently.

Thank you.

v-ssriganesh
Community Support
Community Support

Hi @zeke1970,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

 

v-ssriganesh
Community Support
Community Support

Hi @zeke1970,
Thank you for reaching out to the Microsoft fabric community forum.

I’ve reproduced your use case and confirmed that I’m getting the expected output based on your requirements:

  • Earliest timestamp record displayed as per slicer selection.
  • Only the single row with the earliest timestamp appears.

Output:

vssriganesh_0-1748837647714.png

 

For your reference, I’m attaching the .pbix file with the implemented solution.

Thank you, @Ashish_Excel & @speedramps for sharing your valuable insights.


If this information is helpful, please “Accept as solution” and give a "kudos" to assist other community members in resolving similar issues more efficiently.
Thank you.

Hi @zeke1970,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please accept it as a solution and give it a 'Kudos' so other community members with similar problems can find a solution faster.
Thank you.

Ashish_Excel
Solution Supplier
Solution Supplier

Hi,

Download PBI file from here.

Hope this helps.

Ashish_Excel_0-1748745154633.png

 

speedramps
Community Champion
Community Champion

The Date field has a Date/Time data type with short date formating.

It is important that you learn the difference between a data/type and formating

Changing the format just changes how the data will be displayed.

It wil not change the underlying value of the data in the releationship !

 

 

speedramps_0-1748634240180.png

If you remove the short date formating then you can clsee the problem with the relationship

 

speedramps_1-1748634432449.png

speedramps_2-1748634448331.png

speedramps_3-1748634732225.png

For example 28/05/2025 00:00:00 will not relate to 28/05/2025 14:20:00 because they are differt values !!!

 

Delete the relationship and delete the Date table (you dont need it)

Just add a new date column  (with a date type) on Table1 based  on Purchase Date

 

Then use that date in your slicer.

Then display the min Purchase Date (with time) for the sliced date.

 

Please click thumbs up and the [accept solution] button

 

 

 

zeke1970
Regular Visitor
speedramps
Community Champion
Community Champion

Please give access to your data, so helpers can hep you

Helpful resources

Announcements
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.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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