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

Hi Friends I have a sample dataset like below I want to retrieve those customers whose Promot Sales Value > 0 and Normal sales Value = 0 . How to write query in qliksense??

Hi Friends I have a sample dataset like below I want to retrieve those customers whose Promot SalesValue > 0 and Normal Sales Value = 0 . How to write query in qliksense??

 

CustomerSellTypeSalesValue
XG970201NORMAL0
XE355501PROMOT1453
XE711301NORMAL0
XE355501NORMAL0
XF970201PROMOT0
XE530601NORMAL0
XE653901NORMAL0
XE653901PROMOT108756

Thanks & Regards,

Bibhuti

13 Replies
ahmar811
Creator III
Creator III

Try this in load Script

load

Customer,

SellType,

SalesValue

from Table where (SellType='NORMAL' AND SalesValue=0) OR (SellType='PROMOT' AND SalesValue>0);

hope this help you

Regards

Ahmar Ansari

Not applicable
Author

Thanks Mr Ahmad for your Response,

Can we write this query as Dimension axis while visualization from above dataset??

"Customers whose SellType is PRMOT then SalesValue > 0 and for those customers if SellType is NORMAL then SalesValue == 0"

Thanks,

Bibhuti

ahmar811
Creator III
Creator III

try this Expression on Dimension

=if((SellType='PROMOT' and SalesValue>0) OR (SellType='NORMAL' and SalesValue=0),Customer)Capture.JPG

Thanks & Regards

Ahmar Ansari

Not applicable
Author

Thanks All for your valuable response .. I resolved the issue..

Thanks,

Bibhuti