Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear colleagues,
I have a table in which I have to do extract three KPIs:
ID | Date_Received | Type ID | Number_Products_Received | Number_Products_Demanded |
---|---|---|---|---|
1 | 01/01/2017 | 1 | 30 | 75 |
1 | 15/01/2017 | 1 | 45 | 75 |
2 | 16/01/2017 | 1 | 20 | 40 |
2 | 24/01/2017 | 1 | 20 | 40 |
3 | 15/02/2017 | 2 | 10 | 10 |
Can anyone help me with this?
Thank you in advance!
May be these
1) Count(DISTINCT {<[Type ID] -= {2}>} ID)
2) Sum(Aggr(Sum(DISTINCT Number_Products_Received), ID, Date_Received))
3) Sum({<[Type ID] -= {2}>} Aggr(Sum({<[Type ID] -= {2}>} DISTINCT Number_Products_Demanded), ID))