The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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!
User | Count |
---|---|
16 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
23 | |
13 | |
13 | |
8 | |
8 |