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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Micki
Creator
Creator

Avoid empy cells with FirstSorted

Hi folks, 

I have the following table 

Micki_0-1601568734842.png

FirstSortedValue(DISTINCT Iter, -EndDate, 2) 

An result is null() (because 2 from the end is empty )could you help me to avoid null cell in firstsortedvalue or maybe is there another way to do ? 

1 Solution

Accepted Solutions
sunny_talwar

@Micki try this

FirstSortedValue({<Iter *= {"*"}>} DISTINCT Iter, -EndDate, 2) 

View solution in original post

2 Replies
sunny_talwar

@Micki try this

FirstSortedValue({<Iter *= {"*"}>} DISTINCT Iter, -EndDate, 2) 
Micki
Creator
Creator
Author

@sunny_talwar  Thank you so much