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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have found similar solutions to my problem online, but am not quite finding the exact scenario that I need to solve. I need unduplicated client counts across a few categories, but the clients can have values in multiple categories throughout the year, so they are showing up multiple times and my totals aren't adding up correctly.
Essentially what I want to do is count the number of records where an exit type meets certain criteria, based on the last exit date for that client within a dynamic date range. I can identify the last exit date within a dynamic range, but I can't figure out how to return the exit type associated with that last date for each client in order to do unduplicated counts.
Here is my calculation for the last exit date:
I was able to figure this out via a SQL query. I'm dealing with another more complex issue related to this though, and may post a different question later! Thanks!
Hi,
Share some data to work with, explain the question and show the expected result.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 28 |
| User | Count |
|---|---|
| 124 | |
| 89 | |
| 73 | |
| 66 | |
| 65 |