Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

set expression for region wise sale

hello

i need to find particular region or country sales.I am not getting how to write set expression to calculate sales.

please help  me to find out..

1 Solution

Accepted Solutions
srishsum2017
Creator
Creator

=sum({<Region={'*'}>}sales)

* denotes- which region you want to see place their name at the place of * otherwise * gives sum of all regions.

Sumit Kumar Srivastava

View solution in original post

13 Replies
prma7799
Master III
Master III

What you want exactly ....

This sale you want to show in text object or in chart ?

Anonymous
Not applicable
Author

in chart

prma7799
Master III
Master III

Or what you want to show like MTD YTD

if you want to show simply then

Take dimension as Region

Expression : Sum (Sale) or you can write here set ...

qlikcheepirishe
Creator
Creator

sum({<Country={"INDIA"}>}SALES)

It will display total sales of Country = India

Sum({<Region= {"Asia"}>}SALES)

It will display total sales of Region Asia

Sum({<Region= {"*"}>}SALES)

It will display Total sales of Region

Anonymous
Not applicable
Author

i already done this.. but i want show by using set  analysis

srishsum2017
Creator
Creator

=sum({<Region={'*'}>}sales)

* denotes- which region you want to see place their name at the place of * otherwise * gives sum of all regions.

Sumit Kumar Srivastava
Anonymous
Not applicable
Author

i am using  this expression  sum({<Country={'Australia','Cuba'}>}Sales)  but its not showing  sales value

prma7799
Master III
Master III

Then simply use AGGR function

like if you have sum(Sales) then use Aggr(sum(Sales),Region)

Aggr(sum(Sales),country)


Or like  put your region field in set  {<Region= {"Latam"}>}



Note: both produce different output.

prma7799
Master III
Master III

Please share some sample application.