Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
rpavan17
Creator
Creator

Firstsortedvalue() not working in Load Script on QlikSense

Hi,

Does Firstsortedvalue() function works in Load Script. It gives me Invalid Dimension if i load.

Thanks

1 Solution

Accepted Solutions
sunny_talwar

You have multiple fields without aggregation which you have not added to the GROUP BY statement... you have three options

Capture.PNG

1) Add these to the Group By statement

2) Remove them from the load statement

3) add aggregation around them

View solution in original post

3 Replies
sunny_talwar

It should, what is the exact script you are trying? Also, did you have Group By clause?

rpavan17
Creator
Creator
Author

Load

DOC_ID,

FirstSortedValue( ACTION_INDEX,-R_C_Time_stamp) as R_C_Index,

ACTION_INDEX,

SENDED_TO_TIMESTAMP

Resident Add_Cancellation_Return_Status

Group By DOC_ID;

Capture.PNG

sunny_talwar

You have multiple fields without aggregation which you have not added to the GROUP BY statement... you have three options

Capture.PNG

1) Add these to the Group By statement

2) Remove them from the load statement

3) add aggregation around them