Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
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,

Try like this:

table1:

Load

[Material code]

from ABC.xlsx;

left join

load

[Material code],

'0' as Dummyfield

resident table1;


Regards,

KC

Best Regards,
KC
Anonymous
Not applicable
Author

Your Understanding is correct only..But I need for all Material Code

I need like this below screenshot..asge.PNG

Anonymous
Not applicable
Author

Hi Jyothish,

Thanks for your rly.But this concept is not suite for my expectation.if u don'tundrstand pls let me know.

Anonymous
Not applicable
Author

Hi Anil,

Is this possible to create? Can u help me.

Thanks in advance

jyothish8807
Master II
Master II

You will get 0 for all material code. Can you explain your requirement in detail ?

Br,

KC

Best Regards,
KC
jyothish8807
Master II
Master II

Try like this:

Try like this:

table1:

Load

[Material code],

[Stock Value]

from ABC.xlsx;

left join

load

[Material code],

'0' as [Stock Value]

resident table1;


Regards,

KC

Best Regards,
KC
Anonymous
Not applicable
Author

Hi Jyothish,

Thanks for ur response.

asge.PNGI have two tables one is master(item master) and one is fact table. Material Code should fall with the value and zero. Please refer attached screen shot.

jyothish8807
Master II
Master II

Try my below code..

Regards,

KC

Best Regards,
KC
Anonymous
Not applicable
Author

Hi Jyothish,

Material Code is in master table and stock value is in fact table..did u get dt? I have to add 'Zero' in material code itself, not in the stock value.

Thanks again for ur Fast response.

Anil_Babu_Samineni

I am not sure, By the way helps to you

Sample:

LOAD * Inline [

Material Code, Stock Value

ABC12, 10

DFE23, 10

kfdfds43, 20

fsd32, 30

klt67, 40

];

Join

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


Output:

Capture.PNG

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