Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have follewing table , agecountdays is a calculated field based on batch and posting date with AGGR
=[Posting date]- Aggr(nodistinct Min([Posting date]), Batch)
But now I want only the line with the highest days , and on C1 - End SoS & SiT , so can this within the above syntax
Batch | [Posting date] | AgeCountDays | Quantity tons | Key Column-a |
21848A1325 | 1/11/2017 | 0 | 0,620 | A1 - Start SoS & SiT |
21848A1325 | 30/11/2017 | 29 | -0,620 | C1 - End SoS & SiT |
21848A1325 | 1/12/2017 | 30 | 0,620 | A1 - Start SoS & SiT |
21848A1325 | 31/12/2017 | 60 | -0,620 | C1 - End SoS & SiT |
21848A1325 | 1/01/2018 | 61 | 0,620 | A1 - Start SoS & SiT |
21848A1325 | 31/01/2018 | 91 | -0,620 | C1 - End SoS & SiT |
21848A1325 | 1/02/2018 | 92 | 0,620 | A1 - Start SoS & SiT |
21848A1325 | 28/02/2018 | 119 | -0,620 | C1 - End SoS & SiT |
Regards,
Hi,
Thanks for your effort and search
But I created a second table where i used the AGGR function with distinct and then it shows only one line with the batch
Maybe this is the best, i have now a detail table and an overview table.
Best regards,
Thanks for the suggestion,
But I was more thinking of a solution in an expression, all the dimensions are loaded from a SQL server, the example is just a small part of the model. And the field AgeCountDays is an calculated field.
Hi,
Thanks for your effort and search
But I created a second table where i used the AGGR function with distinct and then it shows only one line with the batch
Maybe this is the best, i have now a detail table and an overview table.
Best regards,