Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

remove data from sheet

Hi,

Attached an excel sheet, the problem is explained in the sheet itself with the output.

if(Product=previous(Product) and Category<>Previous(Category) and ColumnNoOdd<>ColumnFrom

then remove the Category for that Product from the sheet

Regards

1 Solution

Accepted Solutions
Gysbert_Wassenaar

See attached qvw


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
Gysbert_Wassenaar

See attached qvw


talk is cheap, supply exceeds demand
Not applicable
Author

Hi,

The qvw attached does what is required but actually i'm loading data by Resident Load and for when i use

if(Product=previous(Product) and Category<>Previous(Category) and ColumnNoOdd<>ColumnFrom,1,0) as Flag

i get the result below where incorrectly i get one additional row (having 1), this 1 shud actually be in the above row instead of a zero(0).

why does it behave that way ?

Since the excel sheet is already sorted by Product,Date,ColumnFrom,ColumnOdd so it was required for you to use order by but i had to use Order by Product,Date,ColumnFrom,ColumnOdd.

Also,why did you use first 328, can't we remove that ?

ProductCategoryDateColumnFromColumnNoOddFlag
2267SY, Cqvbdwmmeht, Pmdqop Hwerlv (Uyirsqw)08/10/2012110
2267RJ, Yubiefpa, Tssgduk05/04/20137130
2267RJ, Yubiefpa, Tssgduk05/04/20137131
2267RJ, Yubiefpa, Tssgduk23/04/20137160
2267DA, Xsiacmwu, Tymfte VI (Rny Yrzk)23/04/201316160
2267DA, Xsiacmwu, Tymfte VI (Rny Yrzk)31/05/201316200
2267DA, Xsiacmwu, Tymfte VI (Rny Yrzk)27/06/201316240
2267TK, Fshjmctbj, Wnannr TZ (Vnsioacph)27/06/201324240
2267TK, Fshjmctbj, Wnannr TZ (Vnsioacph)15/06/201424560

Regards

Gysbert_Wassenaar

I don't see any difference using a resident load to order the records.


talk is cheap, supply exceeds demand
Not applicable
Author

yes, u're right resident load shudn't make a difference at all, thats why i exported the data and attcahed it in excel

But why do i get two lines for 2267 as pasted in the above post when i a add the column flag ? Any ideas ?

Regards

Not applicable
Author

thanks...it finally worked on resident too....