Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a data like this:
I want to get AVG_RH value in max(DATE) and Min(DATE) for each ITEM_ID and PART_ID.
For example ITEM_ID = P and PART_ID = P1
I want to get AVG RH in MAX DATE (13-Aug-2018) and MIN DATE(12-FEB-2018) so the result must be in Calculation column above.
Can somebody help me.
Thanks
Try this
Only(TOTAL <ITEM_ID, PART_ID> Aggr(If(Max(TOTAL <ITEM_ID, PART_ID> DATE) = DATE, AVG_RH), ITEM_ID, PART_ID, DATE)) & ' - ' & Only(TOTAL <ITEM_ID, PART_ID> Aggr(If(Min(TOTAL <ITEM_ID, PART_ID> DATE) = DATE, AVG_RH), ITEM_ID, PART_ID, DATE))