Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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 belowSubfield
Like this.
Join
LOAD Student,
SubField(Tdays, ';') AS TdaysT
Resident OriginalTable ;
DROP Field Tdays;
RENAME Field TdaysT to Tdays;
Like this.
Join
LOAD Student,
SubField(Tdays, ';') AS TdaysT
Resident OriginalTable ;
DROP Field Tdays;
RENAME Field TdaysT to Tdays;
can it be done directly with visualization chart table.. instead of load scripts logic.?
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.
You can also try the below one.
LOAD SubField(TDays, ';', IterNo()) AS Split_TDays,
TDays
FROM YourDataSource
WHILE SubField(TDays, ';', IterNo()) <> '';
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;
Thanks for help SubField working