Forum Discussion
Measure Help
- 5 years ago
Hi, PowerBI123456
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table:
You may go to 'Query Editor' and add an index column.
Then you may create a measure as below.
Requestor = var maxindex = CALCULATE( MAX('Table'[Index]), FILTER( ALL('Table'), [Date]<MAX('Table'[Date])&& [Action]="Request" ) ) return IF( MAX('Table'[Action])="Response", MAXX( FILTER( ALL('Table'), [Index]=maxindex ), [User] ) )Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
PowerBI123456 this could be either very easy or very difficult.
How are you determining what someone is the Requestor of? Is there a ticket number or something (not included in data)? Is it sequentially...and what if the data happens to be in a different order?
- PowerBI1234565 years agoPost Partisan
Yup, there is an account number included. Yes it is sequential.
- littlemojopuppy5 years agoCommunity Champion
Can you provide some sample data that includes that? Because I'd hate to assume incorrectly...
- PowerBI1234565 years agoPost Partisan
littlemojopuppy You can assume all of these have the same account number and are in sequential order.