Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Announcements
See why BI users voted Qlik #1 in 11 categories. GET REPORT
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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

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

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