Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
sujana1621
Contributor III
Contributor III

Duplicate data for each record

Hi,

I have a data which shows as below:

 

IDNameCase
123Mike
1233
123
345Robert
3456
345
567James4
567
1234Jim
12345
1234

Result i am looking for is:

 

IDNameCase
123Mike3
123Mike3
123Mike3
345Robert6
345Robert6
345Robert6
567James4
567James4
1234Jim5
1234Jim5
1234Jim5

I want data values to be repeated. Could someone please help me in how to do in the script and in the Table.

Thanks

1 Solution

Accepted Solutions
sunny_talwar

This is because Table box only shows distinct combination of all the columns you display. Since the values are repeating you are not seeing them. But add them as dimension to straight table and use Count(ID) and you will see their multiple counts.

Capture.PNG

View solution in original post

5 Replies
Nicole-Smith

Please do not post your questions multiple times.  I have already answered your question on this thread: Duplicate the data for the same respondent

sunny_talwar

This may be:

Table:

LOAD * Inline [

ID, Name, Case

123, Mike,

123, ,3

123, ,

345, Robert,

345, ,6

345, ,

567, James, 4

567, ,

1234, Jim,

1234, ,5

1234, ,

];

FinalTable:

LOAD ID

Resident Table;

Left Join (FinalTable)

LOAD ID,

  MaxString(Name) as Name,

  Max(Case) as Case

Resident Table

Group By ID;

DROP Table Table;


Capture.PNG

sujana1621
Contributor III
Contributor III
Author

Hi Sunny,

I got the above in the preview but I am looking in the Table Box. Below is how i get in table box. Please let me know if i have to change in the script to reflect in the table box.

IDCaseName
1233Mike
3456Robert
5674James
12345Jim

Thanks

sunny_talwar

This is because Table box only shows distinct combination of all the columns you display. Since the values are repeating you are not seeing them. But add them as dimension to straight table and use Count(ID) and you will see their multiple counts.

Capture.PNG

Not applicable

In Qlikview

The table box display distinct records only


That's the reason it's not repeating duplicate values