Forum Discussion
FIRSTDATE and LASTDATE
HI SNV,
I can't got your logic.
In your visual, you use the 'group' as the axis, so this graph shows summarized result by group column. When you filter on matrix by specific ID, then graph will change.
BTW, if you want to use show the correspond result, you need to modify your chart and use 'ID' as the axis.
Regards,
Xiaoxin Sheng
Hello Xiaoxin Sheng,
The way I want it to work is as follows:
- With the slicer a date range is selected. For example, 01-01-2017 through 31-12-2017.
- I now want the average per group from the scores with a FIRSTDATE within this date range and the average per group from the scores with a LASTDATE within this date range.
- If an ID has multiple scores on the same FIRSTDATE or LASTDATE that should first be averaged before the group average is calculated.
The problem is that while a date range is selected with the slicer, for some ID's a date is selected which falls out of this range. As seen in my previous post, a date is shown from 2015. This is not correct, and the average is miscalculated because of that.
Is this more clear?
Kind regards.