Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hello All,
I'm new to Power BI and I need help please.
I have a table that looks like this :
ID | PurchaseDate | Amount |
A1 | 01/11/2027 | 100 |
A1 | 02/08/2022 | 300 |
A1 | 01/11/2022 | 300 |
A2 | 01/03/2021 | 850 |
A3 | 01/01/2024 | 110 |
A3 | 01/04/2022 | 450 |
A3 | 03/09/2024 | 150 |
A3 | 01/08/2023 | 150 |
A5 | 08/08/2022 | 690 |
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:
ID | PurchaseDate | Amount |
A1 | 02/08/2022 | 300 |
A3 | 01/08/2023 | 150 |
A5 | 08/08/2022 | 690 |
I tried to create a measure with FIRSTDATE(PurchaseDate) , but the problem is that when IDs have the same amount it returns me:
ID | PurchaseDate | Amount |
A1 | 02/08/2022 | 300 |
A1 | 01/11/2022 | 300 |
A3 | 01/08/2023 | 150 |
A5 | 08/08/2022 | 690 |
Thanks for your help.
BR.
Solved! Go to Solution.
Hi,
Please check the attached pbix file.
All measures are in the attached pbix file.
Thanks.
Hi,
Please check the attached pbix file.
All measures are in the attached pbix file.
Thanks.