Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
Coming your way, the Qlik Data Revolution Virtual Summit. October 27-29. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
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
Highlighted

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
Highlighted

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

Highlighted
Creator
Creator

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

Highlighted

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