Skip to main content
Announcements
Customer Spotlight: Discover what’s possible with embedded analytics Oct. 16 at 10:00 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Grade Change

Hi Experts,

I do have a requirement where I need to get Product names that have been downgraded or upgraded based on grading difference,

Sample data is as shown below,

  

ProdGradeDate
A12316/15/2014
A12326/14/2014
A45616/15/2014
A45616/14/2014
A78926/15/2014
A78916/14/2014

output value should be A789 and A123 which is calculated based on difference of today's grading and yesterday's grading is not equal to 0

2 Replies
Anonymous
Not applicable
Author

Here is the script:

data:
LOAD Prod,
Grade,
Date
FROM
[https://community.qlik.com/thread/169068]
(
html, codepage is 1252, embedded labels, table is @1);

left join load
Prod,
if(len(trim(only(Grade))), 'Not Changed', 'Changed') as Result
resident data
group by Prod;

MarcoWedel

Hi,

one solution could be:

QlikCommunity_Thread_169068_Pic1.JPG

QlikCommunity_Thread_169068_Pic2.JPG

QlikCommunity_Thread_169068_Pic3.JPG

hope this helps

regards

Marco