Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Controlling context in set analysis

I have a requirement where I need the value from one category in a calculation for other categories. The total should be limited to that pivot table column. In the attached file I'm looking for Cat1Value to be 100 for Brand A and 300 for Brand B. I'm using

$(=Sum({ <Category = {'Category 1'}>} [Amount])) but I need to limit it to the current pivot table column. Is there a way to accomplish this? I won't be able to hard code the brand because they'll be different depending on current selections.

Appreciate any help.

Thanks,

1 Solution

Accepted Solutions
sunny_talwar

Like this?

Capture.PNG

Sum(TOTAL <Brand>{ <Category = {'Category 1'}>} [Amount])

View solution in original post

2 Replies
sunny_talwar

Like this?

Capture.PNG

Sum(TOTAL <Brand>{ <Category = {'Category 1'}>} [Amount])

Not applicable
Author

Just like that!

Thank you very much.