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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi all,
I'm pretty new to PowerBi but I have got good familarity.
I want to return a SUM value (so I can put in a card visual) of a SUM of values only by unique IDs and their latest date of values.
This means I can put a date slider which filters the latest SUM values (by unique IDs) in a date range.
Example data:
| ID | Amount | DateTime |
| 1 | 10 | 01/01/2023 |
| 1 | 5 | 02/05/2023 |
| 1 | 2 | 01/08/2023 |
| 2 | 15 | 01/01/2023 |
| 2 | 10 | 02/05/2023 |
| 2 | 5 | 01/08/2023 |
I want to then add a filter slider and if I select January and it only shows the SUM value of 25. But if I change the slider for May it will show me the SUM value of 15. If I set the date slider for the whole of 2023 I want it to only show the latest data which is a SUM of 7.
I can create DAX to SUM latest values only but if I change the slider to January there is no data. So I need to be able to create a SUM based on unique IDs only and their latest date based on a filter slider.
Many thanks,
Liam
Hi, many thanks for this!
Do you know if it's possible to do by day also? As I want the slider to be in days between a period.
Many thanks
Sure, something like this might work depending on the filters you use:
Proud to be a Super User!
Hi,
Here is one way to do this:
I hope this post helps to solve your issue and if it does consider accepting it as a solution and giving the post a thumbs up!
Proud to be a Super User!
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |