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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
vimalthehero
Contributor III
Contributor III

show all Subfield values in table chart visualization

i have a column "TDays" with data "21;15;29;5;6"

when i put function subfield(TDays,';') it get display the first values from the subfield  . 

Can we get all the subfield split data into the table?? as shown belowSubfieldSubfield

 

 
 
Labels (3)
1 Solution

Accepted Solutions
BrunPierre
Partner - Master II
Partner - Master II

Like this.

Join
LOAD Student,
SubField(Tdays, ';') AS TdaysT
Resident OriginalTable ;

DROP Field Tdays;
RENAME Field TdaysT to Tdays;

View solution in original post

7 Replies
BrunPierre
Partner - Master II
Partner - Master II

Like this.

Join
LOAD Student,
SubField(Tdays, ';') AS TdaysT
Resident OriginalTable ;

DROP Field Tdays;
RENAME Field TdaysT to Tdays;

vimalthehero
Contributor III
Contributor III
Author

can it be done directly with visualization chart table.. instead of load scripts logic.?

 
krishna20
Specialist II
Specialist II

 
 
You can try this in load editor.
Test:
Load *,
Subfield(Tdays,';') as Days;
Load * Inline [
Name,Tdays
Vimal,2;3;6;21;13
Vijay,3;4;12;22;26
];
marcus_sommer

No - at least not with native values and it shouldn't be tried to apply a highly complex logic with a lot of disadvantages in the UI to things which are simply done within the script.

 
Amit_Prajapati
Contributor III
Contributor III

You can also try the below one.

LOAD SubField(TDays, ';', IterNo()) AS Split_TDays,

TDays

FROM YourDataSource
WHILE SubField(TDays, ';', IterNo()) <> '';

 

 
sk88024
Creator
Creator

This should work - 

Temp:
Load * Inline [
Name,Tdays
Vimal,2;3;6;21;13
Vijay,3;4;12;22;26
];

NoConcatenate
New:
Load Name,
SubField(Tdays, ';', IterNo()) as Tdays
Resident Temp
While IterNo() <= SubStringCount(Tdays, ';') + 1 ;

Drop Table Temp;

sk88024_0-1745839776362.png

 
Suraj_Y_
Contributor
Contributor

Thanks for help SubField working