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

pls help

I have Sum(saleQty) in my chat column expression but i want to get only "retail" saleQty. how to use Sum(saleQty) and retail in set analysis to do the task. thanks

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Sum({<Type = {'retail'}>}saleQty)


Here type is the dimension name which contains retails..

You can replace as per your field name

View solution in original post

5 Replies
MK_QSL
MVP
MVP

Sum({<Type = {'retail'}>}saleQty)


Here type is the dimension name which contains retails..

You can replace as per your field name

Not applicable
Author

Hi Dushan

Sum({<YourFieldName={'retail'}>} saleQty)

best regards

chris

er_mohit
Master II
Master II

try this

Sum(<Fieldname='retail'>saleQty)

or try this

Sum({<Fieldname= {'retail'}>}saleQty)

Not applicable
Author

thanks both of u

Not applicable
Author

another thing, i want to get retail and wholesale contribution to another column. In my chart I have retail sale and whole sale in two rows.

as an example, if my retailsale=500 and Wholesale=1000, i want to get the contribution as retail contribution=(500/(500+1000))*100 automaticaly and same as whole sale contribution. how can I do this in a chart expression?