I need to get NOT the query's last value by the last category's values (in fact their avg). So for clarity's sake, here's an example of my dataset in the query designer:
Year | Period | File no | Ratio value
[...]
2015 | _12__| 2340 | 0.72
2015 | _13__| 2351 | 0.75
2015 | _13__| 2456 | 0.84
2016 | _01__| 2867 | 0.80
2016 | _02__| 5463 | 1.10
2016 | _02__| 3457 | 0.90
So, as an end-result, in my report, I only want the average of the last period's values to appear. In the example given, it would be Period 2 and the average of 1.10 and 0.90 so a result of 1.00. But I dont know how to get that!
If I use Last(Field!Ratio.Value), I get 0.90. If I use Last(Fields!Periode.Value), I get no changes at all. I can't remove File no in Query designer since it messes up all my ratio values, so I inherently need to keep it.
So if anyone has any idea how to filter out everything except for the last period's values, it would be very much appreciated. Thanks!