Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Nested set analysis difficulty

Hello,

I have a pivot table in my application with the following expression:

=Sum ({$<MainDate_YYYY={$(=max(MainDate_YYYY)-1)},[%DistributionChannel] = {"<>01"}>}[#OrdLine_Net Value (€)])

I would like to add somewhere in this set analysis that [Ord_Sales Document Category]<>'K'.

I tried the following syntax: =Sum ({$<MainDate_YYYY={$(=max(MainDate_YYYY)-1)},[%DistributionChannel] = {"<>01"},[Ord_Sales Document Category] = {"<>K"}>}[#OrdLine_Net Value (€)]), but with no luck.

I also tried adding a calculated dimension like this: =Aggr(Only({$-<[Ord_Sales Document Category] ={"K"}>}[Ord_Sales Document Category]),[Ord_Sales Document Category]) which worked, but I can't hide the column in a pivot table.

Any idea, please?

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Try this (notice the minus sign):

[Ord_Sales Document Category]-={'K'}

View solution in original post

3 Replies
Anonymous
Not applicable
Author

Try this (notice the minus sign):

[Ord_Sales Document Category]-={'K'}

Not applicable
Author

Yes, thank you! It works. I tried all sort of things, but I still have a lot to study...

Anonymous
Not applicable
Author

Me too