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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
jalpashukla
Partner - Contributor III
Partner - Contributor III

Same column with different condition in different sheets

Hello everyone,

I have four sheets in my app which are working as below:

sheet-1: where project status = active, feedback <> 0 , country = india

sheet-2: where project status = active, feedback =0, country = india

sheet-3: where project status=active, feedback <=3, country = india

sheet-4: all data

Sr.no product Project status feedback Country
1 ABC Active 1 India
2 ABC Active 4 India
3 ABC closed 0 Paris
4 ABC not applicable 4 France
5 ABC closed 1 India
6 ABC Active 0 India

If I select "Product"=ABC from any sheet, the result should be visible with respective conditions.

Expected result:

sheet-1:

Sr.no product Project status feedback Country
1 ABC Active 1 India
2 ABC Active 4 India

sheet-2:

Sr.no product Project status feedback Country
6 ABC Active 0 India

 

sheet-3: 

Sr.no product Project status feedback Country
1 ABC Active 1 India

 

@PrashantSangle @avinashelite  @swuehl @kaushiknsolanki @MK_QSL @vikasmahajan @Chanty4u @Anil_Babu_Samineni @Kushal_Chawda  @sunny_talwar 

Thanks

2 Replies
ajaykakkar93
Specialist III
Specialist III

hi,
backend script:

data1:
//step 1
load Srno,product,Project_status,feedback,Country;
load * Inline [
Srno,product,Project_status,feedback,Country
1,ABC,Active,1,India
2,ABC,Active,4,India
3,ABC,closed,0,Paris
4,ABC,N/A,4,France
5,ABC,closed,1,India
6,ABC,Active,0,India
];

exit Script;

add measure with all dimensions u need with a below measure respectively

sheet-1: where project status = active, feedback <> 0 , country = india
sheet 1 exp : Count({<Project_status={'Active'},feedback-={'0'}>} 1)

sheet-2: where project status = active, feedback =0, country = india
sheet 2 exp : Count({<Project_status={'Active'},feedback={'0'}>} 1)

sheet-3: where project status=active, feedback <=3, country = india
sheet 3 exp : Count({<Project_status={'Active'},feedback={"<=3"}>} 1)

 

 

 

 

 

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting

ajaykakkar93
Specialist III
Specialist III

hi,
backend script:

data1:
//step 1
load Srno,product,Project_status,feedback,Country;
load * Inline [
Srno,product,Project_status,feedback,Country
1,ABC,Active,1,India
2,ABC,Active,4,India
3,ABC,closed,0,Paris
4,ABC,N/A,4,France
5,ABC,closed,1,India
6,ABC,Active,0,India
];

exit Script;

add measure with all dimensions u need with a below measure respectively

sheet-1: where project status = active, feedback <> 0 , country = india
sheet 1 exp : Count({<Project_status={'Active'},feedback-={'0'}>} 1)

sheet-2: where project status = active, feedback =0, country = india
sheet 2 exp : Count({<Project_status={'Active'},feedback={'0'}>} 1)

sheet-3: where project status=active, feedback <=3, country = india
sheet 3 exp : Count({<Project_status={'Active'},feedback={"<=3"}>} 1)

 

 

 

 

 

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting