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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

calculate total value only associate with two dimensions


Hi there,

I am working on a dashbaord utilizing retail data. The data field includes item code, store code, invoice date, department and item sales quantity. I am going to calculate the total sales for all the itmes sold on specific day in the specific store.

I have tried expression=sum(item_qty) but it does not work since the value will change when specific department is selected. Is there a way to do the calculation of total value which will not change regardless item code and department are selected.

Thank you!

Gloria

1 Solution

Accepted Solutions
Colin-Albert
Partner - Champion
Partner - Champion

sum( {<item_code=, department= >} item_qty)

will exclude selections on item_code or department from the quantity, selections on other fields will still affect the figure.

View solution in original post

3 Replies
Colin-Albert
Partner - Champion
Partner - Champion

sum( {<item_code=, department= >} item_qty)

will exclude selections on item_code or department from the quantity, selections on other fields will still affect the figure.

Colin-Albert
Partner - Champion
Partner - Champion

There is more info on set analysis and a wizard to help create the expressions here.

http://community.qlik.com/message/170190#170190

Not applicable
Author

Thank you so much for your help!! It works!