Forum Discussion
Filter by Latest data for each [Field]
- 5 years ago
Hi, lordneeko
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table1:
You may create two measures as below.
Date = CALCULATE( MAX(Table1[Date Reported]), ALLEXCEPT(Table1,Table1[Item],Table1[Location],Table1[Serial Number]) )qty = var d=[Date] return CALCULATE( MAX(Table1[Quantity]), FILTER( ALLEXCEPT(Table1,Table1[Item],Table1[Location],Table1[Serial Number]), [Date Reported]=d ) )Then you may create the drillthrough target page like below.
Result:
Drillthrough 'Location A'
Drillthrough 'Serial Number 2'
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, lordneeko
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
Table1:
You may create two measures as below.
Date =
CALCULATE(
MAX(Table1[Date Reported]),
ALLEXCEPT(Table1,Table1[Item],Table1[Location],Table1[Serial Number])
)qty =
var d=[Date]
return
CALCULATE(
MAX(Table1[Quantity]),
FILTER(
ALLEXCEPT(Table1,Table1[Item],Table1[Location],Table1[Serial Number]),
[Date Reported]=d
)
)
Then you may create the drillthrough target page like below.
Result:
Drillthrough 'Location A'
Drillthrough 'Serial Number 2'
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- lordneeko5 years agoAdvocate III
That isn't the direction I went, but if I end up refactoring then I'll probably come back to this and go in that direction. Thank you.