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! It's time to submit your entry. Live now!
I am using the measure below to determine who put a request to a correspodning response. The problem is that it shows all the users who put in a request before the response date. I just want the latest one. Any tips
Requester = calculate(max('FACT: Activity'[UserID]), Filter('FACT: Activity', 'FACT: Activity' [ActionID] = “request” && 'FACT: Activity' [Activity Date] <= calculate(max('FACT: Activity' [Activity Date]), 'FACT: Activity' [ActionID] = “response” , ALLEXCEPT('FACT: Activity', 'FACT: Activity' [Account]))))
Solved! Go to Solution.
@lbendlin Thanks a lot!! Sorry to add one other criteria. I didnt realize it until I tested it and I am dealing with 10+ million rows, but another request can happen after a response. The measure is calculating the max request even if its after the response. For example with account 3, there is a request (Angela's) after the response but I don't care for that request since there is no response after. I only care about Jenny's request for account 3 . Hope that makes sense. Thank you so much for all your help!! I keep trying to add a table but its not letting me.
@lbendlin Sorry its not letting me attached a table. I keep getting an error message. But I added an account 4 which shows no response yet. I wouldnt want to know who the requester is for that account.
You did not specify that clear enough (at least not for me), and your sample data has responses for all cases. Please provide better sample data, this time in a table, please.
You attach data by posting the tabular data here.
here's your measure:
@lbendlin Thanks a lot , but the measure doesnt take into account a response. I only want the last request identified if there was a response.
Please provide sample data in usable format (not as a picture) , show the expected outcome, and give sufficient context.
How do I attach data? Here is what it looks like:
Here is what my measure getting me:
Here is what I want. I only want to see the last requester if there was a response:
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 60 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 131 | |
| 103 | |
| 58 | |
| 39 | |
| 31 |