Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi everyone,
Please help me to write set analysis of current year sales for product which sold last year .
Source:-
Product Year Sales
A 2017 100
B 2017 200
C 2017 300
A 2018 400
B 2018 500
D 2018 600
Output:-
Product sum of Sales
A 400
B 500
Thanks
Hi,
Try with this expression:
SUM({<Year={2018},Product=P({1<Year={$(=Max(Year)-1)}>})>} Sales)
You can custom the current year with a calculated vale also
Ag+
Hi,
Try with this expression:
SUM({<Year={2018},Product=P({1<Year={$(=Max(Year)-1)}>})>} Sales)
You can custom the current year with a calculated vale also
Ag+
Its working. Thanks...