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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to Create Dummy records

Hi,

I have a Field called Material code which contains some data.

For Example:

Material Code:

1

2

3

4

5

I have to add 0 as a dummy value for each Records.How can I do this in the script.Could Anyone help me in this

Thanks

24 Replies
jyothish8807
Master II
Master II

Hi Sindhu,

Then try like this:

load

[Material code],

'0' as [Stock Value]

from Table:


Conctenate


Fact:

Load

[Material code],

[Stock Value]

from .....;

Best Regards,
KC
sasikanth
Master
Master

HI,

If your intention is to display a ZERO if no value then you can handle it from pivot table expression.

have you tried the below Exp?

=Sum(Aggr(Sum(if isnull([Stock Value]),0,[Stock Value]),[Material code]))

Anonymous
Not applicable
Author

Thanks For your response.

We have around 1 lakh of Material code.How can we do this by Inline load.Suggest me Any other option pls.

Anil_Babu_Samineni

Even 1 Lakh records we use only one line of script, Does it make sense?

LOAD [Material Code],'0' as [Stock Value] Resident Sample;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Muthu
Partner - Creator III
Partner - Creator III

Please check the below qvw and see whether it helps.

Adding '0' will regenerate for all the records !