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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
ManasRout
Contributor
Contributor

How to achive qvd using some condition like if

Hi,

I have requirement like after creating QVD by using full load if I am using this QVD in 2 different Application it may be corrupt the QVD means the QVD may be become empty data.So that on their I want to apply a condition like if my QVD file size <=0 then doing again full load else QVD size >0 then doing incremental load.How to archive this.

 

Thanks in advance

1 Reply
JordyWegman
Partner - Master
Partner - Master

Hi ManasRout,

Try this:

// Create a sub so you can reload it again
Sub LoadTable

// Load your table
Table:
Load
  *
From [YourSource] (qvd)
;

End Sub

// Call your load
Call LoadTable

// Check if the table has rows
Let vNoOfRows = NoOfRows( Table ) + 0;

// If it's empty, load the table again
IF $(vNoOfRows) = 0 then

    Call LoadTable

// If not, store the table
ELSE

    STORE Table INTO [YourSource] (qvd);

ENDIF


Jordy

Climber

Work smarter, not harder