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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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

I have handled this using substring at script level , but req is to achieve same at UI level ..

Anil_Babu_Samineni

Substring future works both level either script and UI will work

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
shekhar_analyti
Specialist
Specialist
Author

Hi Anil ,

Thanks for reply . Is there any other way , i am just curious to know . Because i have huge data and i do not want to take toll on performance . Please suggest

Anil_Babu_Samineni

Before discuss, can we know your intend ?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
shekhar_analyti
Specialist
Specialist
Author

Hi Anil ,

I have to use numeric values in field separated by '/' for calculation i mentioned . I do not want to make any change in data script .

tresesco
MVP
MVP

This?

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

shekhar_analyti
Specialist
Specialist
Author

Hi Tresesco ,

I have used This already as well .

tresesco
MVP
MVP

Isn't that working? Or you are just looking for alternatives. If so try one more option:

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


Or,


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

shekhar_analyti
Specialist
Specialist
Author

Yeah ... actually looking for alternatives .. which should not make my existing application heavy ..