Order By trouble: How could we order by 2 columns of numeric columns in Desc?
I just found an issue when handling 2 array of numeric field to order by. (Because QlikView does not support longer numeric, we had to separate timestamp part and mili-second part, and sort using both.)
How could we order by 2 columns of numeric columns in Desc?
In below example, if we Order By Sort_a desc, it produces:
However, if we do Order By Sort_a, Sort_b desc, QlikView sort it firstly by Sort_a, then re-sort by Sort_b in asc.
Condition: Load * Inline [
Result: Load *, RowNo() Resident Condition Order By Sort_a, Sort_b desc desc; Drop Table Condition;
Often we ought to select only latest value per xxx (something). We order by timestamp, then group by, by having FirstValue(...).