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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
syedsaqib
Contributor II
Contributor II

How to remove 0 Data in Cross Table Load

Hi Everyone,

I am converting multiple fields of "Aging groups" from Columns to Rows using cross table as shown in attached screenshot.

There are many 0 values in the data (yellow highlighted) and all these '0's are also being loaded to final table after applying crosstable.

How can I load the same data with crosstable ignoring all "0" values ?

Thanks

1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi @syedsaqib 

Try like below

T1:
CrossTable(AgingGroup, Amount1)
LOAD [Customer No],
Current,
[1-30],
[31-60],
[61-90],
[91-180],
[181-365],
[Over 365]
FROM
[D:\Qlik\Com\Sample Data and Desired result.xlsx]
(ooxml, embedded labels, table is Sheet2);

 

NoConcatenate
Load * Resident T1 Where (Amount1 <>0);

DROP Table T1;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
Qrishna
Master
Master

Sample Data and desired output pls?

syedsaqib
Contributor II
Contributor II
Author

Hi, Sample data and desired output attached.

 

syedsaqib_0-1621208587378.png

 

MayilVahanan
MVP
MVP

Hi @syedsaqib 

Try like below

T1:
CrossTable(AgingGroup, Amount1)
LOAD [Customer No],
Current,
[1-30],
[31-60],
[61-90],
[91-180],
[181-365],
[Over 365]
FROM
[D:\Qlik\Com\Sample Data and Desired result.xlsx]
(ooxml, embedded labels, table is Sheet2);

 

NoConcatenate
Load * Resident T1 Where (Amount1 <>0);

DROP Table T1;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.