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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Get only one row per ID per DATEFIRST or MIN

Hello All,
I'm new to Power BI and I need help please.
I have a table that looks like this : 

 

IDPurchaseDateAmount
A101/11/2027100
A102/08/2022300
A101/11/2022300
A201/03/2021850
A301/01/2024110
A301/04/2022450
A303/09/2024150
A301/08/2023150
A508/08/2022690

I would like to retrieve the IDs with the next purchase date after indicating it in my slicer date table.

Let's imagine that I indicate in my slicer 01/08/2022
An example of what I would like to have:

 

IDPurchaseDateAmount
A102/08/2022300
A301/08/2023150
A508/08/2022690


I tried to create a measure with FIRSTDATE(PurchaseDate) , but the problem is that when IDs have the same amount it returns me:

 

IDPurchaseDateAmount
A102/08/2022300
A101/11/2022300
A301/08/2023150
A508/08/2022690


Thanks for your help.
BR.

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

Please check the attached pbix file.

All measures are in the attached pbix file.

 

Thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

1 REPLY 1
Jihwan_Kim
Super User
Super User

Hi,

Please check the attached pbix file.

All measures are in the attached pbix file.

 

Thanks.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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