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

How to do this in Qlikview

Hi Experts

I want this in Qlikview Script:

Main File Data:

Main File Data.png

Desired Output:

Desired Output.png

Sample File is Attached for Reference.

Regards

Eric

15 Replies
Not applicable
Author

Here is a sample for how you could limit the load in the script:  (I am basing this on what looks like your primary limiters are Unique Case & Unique Category)

sunny_talwar

What is the logic that is driving the output you are looking for?

settu_periasamy
Master III
Master III

Seems to be you want the first value in the 'ID'.

May be try like..

LOAD Case,
Flag,
Category,
FirstValue(ID) as ID
 
FROM
Sample_Logic.xlsx
(
ooxml, embedded labels, table is Sheet1) Group by Case,Flag,Category;


Capture.JPG



varshavig12
Specialist
Specialist

Script:

Directory;

LOAD Case,

     Flag,

     Category,

     firstvalue(ID) as ID

FROM

a.xlsx

(ooxml, embedded labels, table is Sheet1)

Group by Category,Case,Flag;

Dimesion:

Expresssion:

if(Category<>above(Category),ID)

Output:

phaneendra_kunc
Partner - Specialist III
Partner - Specialist III

Seems he is looking load only first occurrence.

You can do with FirstValue() or Previous() with if statement.

varshavig12
Specialist
Specialist

I guess, one can do this with aggr function.

sunny_talwar

But then why did GHI 3 Wrong not included in the result?

phaneendra_kunc
Partner - Specialist III
Partner - Specialist III

He is picking up/ going by Category not on Flag.

jonathandienst
Partner - Champion III
Partner - Champion III

Perhaps the original poster would like to comment on the speculation here.

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein