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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum of value where a = b expression

Hi Guys,

I am using qlik sense and want a combo chart that has two Measures.

The 2 measures I want are "Sum of value where Country = a" and "Sum of value where Country = b"


Currently Sum ({$<[conceptid]={'258'}>} string_value) is not working the 258 would be what changes.


Any help would be appreciated.

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Are you trying to sum up string values? That won't work. Try summing a numeric field. Something like Sum({<Country={'a'}>}SalesAmount)


talk is cheap, supply exceeds demand
Not applicable
Author

Sorry the name is misleading, the string value is actually a number. I get the value on the groan however not the one that relates to the concept id. All I want is the "where" equivalent. So example sql would be select sales from table where country = France. I can get the sales but unable to get them to only pick the country using the expression I said first.