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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
shekhar_analyti
Specialist
Specialist

How to segregate a field value into two without changing edit script ?

Hi All ,

I have a field Rating . Rating has following values

Rating

2/5

1/3

5/10

5/5

I want to do calculation like 2 + 5/2 , 1+3/2 , 5+10/2 ..etc . I want to achieve this on UI . I do not want to alter edit script .

Thanks & Regards

Shekar

11 Replies
shekhar_analyti
Specialist
Specialist
Author

=Replace(Rating, '/','+') / SubField(Rating, '/',1)


Or,


=$(=Replace(Rating, '/','+')) / SubField(Rating, '/',1)


Above is Not working

tresesco
MVP
MVP

Without selecting a single value, $ expansion solution would not work. You could find alternate solution using various string-functions, like - index(), textbetween(), mid().... However, with such variations, there would not be a major performance difference in UI. Hence, you can stick to subfield() solution.