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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to handle this?

Hi

I am loading an qvd

It contains

ID Status Time(hr)

1 Success -

2 Fail -

1 - 2

I want the result like this

ID Status Time

1 Success 2

2 Fail -

How to handle?

Can anyone help me out?

3 Replies
Anonymous
Not applicable
Author

How is the data build up?? Might have to do with this ...

Seems that ID 1 with status is not correctly connected to the time in your case ...

Not applicable
Author

Something like this:


ResultTable:
Load distinct ID
Resident QvdTable;
Left join (ResultTable)
Load ID, Status
Resident QvdTable;
Left join (ResultTable)
Load ID, Time(hr) as Time
Resident QvdTable;


johnw
Champion III
Champion III

Or possibly:

LOAD
ID
,maxstring(Success) as Success
,max("Time(hr)") as Time
FROM MyQVD.qvd (QVD)
GROUP BY ID
;