Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
siva8
Contributor
Contributor

qlik scenario

Hi Team,

can u please help me with the below requirement 

i have table like below

flagcctotal
 same2
bsame3
fsame4
bnotsame4
fnotsame5

 

i have to  ignore  records  where (flag =b and cc = same) and   where (flag =f and  cc =same)

output:

flagcctotal
 same2
bnotsame4
fnotsame5

 

Thanks in advance 

Regards

siva 

1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

in script

load *
where not (flag='b' and cc='same') and not  (flag='f' and cc='same')
;
load * inline [
flag,cc,total
 	,same,2
b,same,3
f,same,4
b,notsame,4
f,notsame,5
];

 

on chart 2 options.

1-set analysis - something like below the - eliminates the combiantions

=Only(
{

-<flag={'b'},cc={'same'}>
-<flag={'f'},cc={'same'}>
}
total)

2-If statement - create a dimension like below and suppress when value is null

=if((flag='b' and cc='same')or (flag='f' and cc='same'),null(),flag)

View solution in original post

3 Replies
dplr-rn
Partner - Master III
Partner - Master III

do you need to do it on the table or script?

siva8
Contributor
Contributor
Author

Hi Dilipranjith,

in script while loading the table i have to ignore  records  based on above  mentioned where clause 

thanks 

siva

dplr-rn
Partner - Master III
Partner - Master III

in script

load *
where not (flag='b' and cc='same') and not  (flag='f' and cc='same')
;
load * inline [
flag,cc,total
 	,same,2
b,same,3
f,same,4
b,notsame,4
f,notsame,5
];

 

on chart 2 options.

1-set analysis - something like below the - eliminates the combiantions

=Only(
{

-<flag={'b'},cc={'same'}>
-<flag={'f'},cc={'same'}>
}
total)

2-If statement - create a dimension like below and suppress when value is null

=if((flag='b' and cc='same')or (flag='f' and cc='same'),null(),flag)