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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sorting Null at last row

Hi , I have a straight table with a dimension and several Expressions. I did sort  By number desc ,Text A-->Z . It was working fine until Null Values dont come up. Null Value doesn't sort function. How can i show only Null Value at end(last row) still keeping my original sort for other dimension values A-->Z. I attach example qvw Please respond with example qvw file. Thanks in advance

7 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

Attachment missing

Regards

ASHFAQ

Not applicable
Author

Example here~~~

sujeetsingh
Master III
Master III

File not opened giving error

ashfaq_haseeb
Champion III
Champion III

Document corrupted

Cannot open

Regards

ASHFAQ

Not applicable
Author

Upload done~

sujeetsingh
Master III
Master III

You need to give a flag as

if(now(2) - Date(Date#(LAST_UPDATE_DATE_TIME, 'YYYYMMDDhhmmss'), 'YYYY-MM-DD hh:mm:ss')=null(),0,now(2) - Date(Date#(LAST_UPDATE_DATE_TIME, 'YYYYMMDDhhmmss'), 'YYYY-MM-DD hh:mm:ss'))

Now just Order it in the script as you want or use an expression to sort in your object.

Not applicable
Author

could you give me example qvw file?