Qlik Community

Ask a Question

QlikView App Dev

Discussion Board for collaboration related to QlikView App Development.

Announcements
Join us at the Cloud Data and Analytics Tour! REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
debsahoo
Contributor III
Contributor III

Having clause in setanalysis

HELLO,

I have a table which have product name and sales. 

Requirements is- In a chart show the sum of sales product wise. Where the product's sum of sales between 10,000 and 20,000.

Plz help me to write setanalysis.

Thanks in advance.

6 Replies
devarasu07
Master II
Master II

Hi,

try like this

Fact:

LOAD * INLINE [

    Product, Sales

    A, 3000

    B, 6000

    C, 10000

    D, 15000

    E, 20000

    F, 25000

];


create measure using set analysis

sum( {$<Sales= {">=10000<=20000"}>}Sales)

Capture.JPG






tresesco
MVP
MVP

May be like:

=Sum({<Product={"=Sum(Sales)>=10000 and Sum(Sales)<20000"}>}Sales)

debsahoo
Contributor III
Contributor III
Author

Thank you all.

devarasu07
Master II
Master II

Hi,

Help us to close this thread by marking as correct.it might useful for others who is having similar issue. thanks

debsahoo
Contributor III
Contributor III
Author

I am new in qlikview. can you tell me how to close thread or check as current answer.