Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a table with one field with the value as
fruit - apple
fruit - banana
vege - cabbage
vege - carrot
how can i set the dimension only fruit and vege, which is the first part before the sign '-'?
You can use
=Subfield(Label,' - ',1)
in both script and front end, but it would be better to use it in the script
You can create a dimension in your script as
Left(FieldName, Trim(Index(FieldName, ' ',1))) as FriutType
and then use that in front end.
May be try this:
LOAD SubField(Dim1, '-', 1) AS Dim2;
LOAD * INLINE [
Dim1
fruit - apple
fruit - banana
vege - cabbage
vege - carrot
];
You can use
=Subfield(Label,' - ',1)
in both script and front end, but it would be better to use it in the script
Thanks a lot!
Thank you very much.
Really appreciate! i used it in calculated dimension and it works!
nice! thank you!