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

Excluding values from table

Hello!

In straight I need to show only those value which have "zero" in cells. For example,

Header 1Header 2Header 3Header 4
A10012
B2000
C302011
D40100
E5000

As a result of formula, the table should transform to the following:

Header 1Header 2Header 3Header 4
B2000
E5000

Kind regards,

Ruslan

1 Solution

Accepted Solutions
kamal_sanguri
Specialist
Specialist

Also, suppress the NULLSCapture.PNG

View solution in original post

10 Replies
prma7799
Master III
Master III

From where you want this back end or in front end?

kamal_sanguri
Specialist
Specialist

Do it at script level, create a flag to see where we have all zeroes and then create a calculated dimension using that flag.

Refer attached.

kamal_sanguri
Specialist
Specialist

Capture.PNG

rassanbekov
Partner - Contributor
Partner - Contributor
Author

Where I should insert the code in script because flagging seems doesn't work.

Directory;

LOAD Index,

  [Company name],

  Header 3,

   FROM [0_ISS\Processed\ProcPopulation 31.12.2016.xlsx] (ooxml, embedded labels, table is Sheet1);

Directory;

LOAD Index,

  Header 4,

FROM [0_ISS\Processed\ProcPopulation 01.01.2017-20.05.2017.xlsx]

(ooxml, embedded labels, table is Sheet1);

LOAD

If([CR, Оплачено]=0 and Оплачено=0,0,1) as Flag;

prma7799
Master III
Master III

Directory;

Load * , If(Header3=0 ,0,1) as Flag

LOAD Index,

  [Company name],

  Header 3,

   FROM [0_ISS\Processed\ProcPopulation 31.12.2016.xlsx] (ooxml, embedded labels, table is Sheet1);

Directory;

Load * , If(Header4=0,0,1) as Flag

LOAD Index,

  Header 4,

FROM [0_ISS\Processed\ProcPopulation 01.01.2017-20.05.2017.xlsx]

(ooxml, embedded labels, table is Sheet1);

kamal_sanguri
Specialist
Specialist

You can also do it at the front end-

Just use a calculated dimension-


=If(Header3=0 and Header4= 0,Header1,NULL())

kamal_sanguri
Specialist
Specialist

Refer this. Without flagging at Front end.

kamal_sanguri
Specialist
Specialist

Also, suppress the NULLSCapture.PNG

shanky1907
Creator II
Creator II

Are you making a new table after these two loads for Header3 & Header4 as zero?