Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello
I’m new to Set Analysis, in the table I’m trying to calculate the total Sales for each Group but only if the Customer is selected. I would want the total Sales by the latest year.
| |||||||||||||||||||||||||||||||||||||||
Any help would be appreciated.
Thanks in anticipation
Hi Jim,
This seems to work:
Sum({$<Customer=, Group = P({<Group>})>}Sales)
Cheers
Andrew
Not sure what the exact output needs to look like, but may be this:
Sum(TOTAL <Group> {<Customer, Group = p(Group)>}Sales)
Hi Jim,
This seems to work:
Sum({$<Customer=, Group = P({<Group>})>}Sales)
Cheers
Andrew
Hi Jim,
You can try with this expression for obtaining the total sales by latest year.
Sum({<Group=P(Group),Year={$(=Max(Year))}>}Sales)
And if you want to show the data only if the customer is selected then you can try with calculated condition functionality available in the General tab of chart properties.
PFA the file for further reference.
Hope this helps 🙂
Br,
Rajpreeth S
Thanks Andrew and Sunny T - both solutions work perfectly. Thanks again for responding so quickly, much appreciated.
Jim