Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi!
I want to create a new calculated dimension like this:
TableA:
ID | DATE1 |
123 | 02/01/2022 |
456 | 01/12/2021 |
789 | 20/01/2022 |
TableB:
ID | DATE2 | DATE3 |
123 | 01/01/2022 | 31/01/2022 |
456 | 15/01/2022 | 15/02/2022 |
789 | 01/02/2022 | 01/03/2022 |
Any solution?
Thanks.
The error happens because you used an aggregation within the expression without wrapping it within an aggr(), like: aggr(if(DATE2<max({A}DATE1) and max({A}DATE1)<=DATE3, 'A', 'B), ID) whereby it's not clear if you really need those max() and/or if this construct might need an extended dimensionality.
Beside this it looked for an unsuitable data-model because I would tend to merge all date-information into a single field and avoiding alternate states and such calculated dimensions ...
- Marcus