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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Neha121
Contributor III
Contributor III

Script logic

 

 

Hi ,

     I have below data.. How do I get Max value and MAx value category in same table in script I have tried RagneMax but didnt work..

YearCompDeptRiskValueMax_valueMax Value Category 
2020C1D1Low Risk1060Very High
2020C1D1High Risk20  
2020C1D1Very Low Risk30  
2020C1D1Med Risk10  
2020C1D1Very High60  
Labels (4)
1 Solution

Accepted Solutions
hanna_choi
Partner - Creator II
Partner - Creator II

Hi @Neha121 

Do you want to get the MAX value from the data load script?

How about this way?

hanna_choi_0-1762219100954.png

 

View solution in original post

2 Replies
hanna_choi
Partner - Creator II
Partner - Creator II

Hi @Neha121 

Do you want to get the MAX value from the data load script?

How about this way?

hanna_choi_0-1762219100954.png

 

marcus_sommer

In addition to the suggestion from @hanna_choi the aggregation load could be directly joined to the source-table, like here simplified (Key is the place-holder for the needed dimensionality):

t: load * from X;
left join(t)
load Key, max(...) as X, firstsortedvalue(...) as Y resident t group by Key;