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: 
Krish2459_58
Creator II
Creator II

partial load not working

Hi, 

We are using the vizlib write back in front end and the partial load in the scipt as follows.

We need to show the most recent comments enterd by the client but we are getting all comments.

IF IsPartialReload() THEN

Writeback_Comments:
Replace only LOAD
"Lease ref",
text("Lease ref") as MR_Comments_Lease_ID,
CreatedBy,CreatedAt
FROM [lib://NZ360/QVDs/WIPcomments_MRI_test.qvd]
(qvd);

join (Writeback_Comments)
Replace only Load

text("Lease ref") as MR_Comments_Lease_ID,
FirstSortedValue(Comments,-CreatedAt) as MostRecent_Comments

FROM [lib://NZ360/QVDs/WIPcomments_MRI_test.qvd]
(qvd) group by "Lease ref";

else

 


Writeback_Comments:
LOAD
"Lease ref",
text("Lease ref") as MR_Comments_Lease_ID,
CreatedBy,CreatedAt
FROM [lib://NZ360/QVDs/WIPcomments_MRI_test.qvd]
(qvd);

join (Writeback_Comments)
Load

text("Lease ref") as MR_Comments_Lease_ID,
FirstSortedValue(Comments,-CreatedAt) as MostRecent_Comments

FROM [lib://NZ360/QVDs/WIPcomments_MRI_test.qvd]
(qvd) group by "Lease ref";

Labels (1)
0 Replies