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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
durgabhavani
Creator III
Creator III

Help me to derive a new field.

Hi All,

Please help me to derive the new field (Rating occured) based on ID, Initial Rating, Latest Rating...

   

IDInitial RatingLatest RatingRating Occurred (New Field)
101LowMediumY
102HighLowY
103 LowY
104Medium N
105HighHighN
106 N

Thanks in advance.

Durga

1 Solution

Accepted Solutions
Anonymous
Not applicable

Like this ??

Load *,if(Len([Latest Rating])=0 or [Latest Rating]=[Initial Rating],'N','Y') as 'Rating Occurred' Inline [

ID,Initial Rating,Latest Rating

101,Low,Medium

102,High,Low

103,,Low

104,Medium

105,High,High

106

];

View solution in original post

5 Replies
Anonymous
Not applicable

Like this ??

Load *,if(Len([Latest Rating])=0 or [Latest Rating]=[Initial Rating],'N','Y') as 'Rating Occurred' Inline [

ID,Initial Rating,Latest Rating

101,Low,Medium

102,High,Low

103,,Low

104,Medium

105,High,High

106

];

vinieme12
Champion III
Champion III

Do you think we also need to specify the evaluation condition of the new field?  Or did the Y and N populate randomly!!

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
durgabhavani
Creator III
Creator III
Author

We need to evaluate the new field based on other two fields ( initail rating and latest rating).

shiva - I am trying your solution. Will let you know the result.

Anil_Babu_Samineni

What is logic behind to implement this?

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
durgabhavani
Creator III
Creator III
Author

Just we need to derive one new field based on the two fields ( intial rating,latest rating). please find the above table for details.

Thank you shiva. it is working for me..

Durga...