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

Announcements
We are aware of an issue with the Product Downloads page and looking into it.
cancel
Showing results for 
Search instead for 
Did you mean: 
souadouert
Specialist
Specialist

FirstSortedValue()

Hello
I have a question about the arguments of the FirstSortedValue function in the graphs , my expression

Count(aggr(Count(DISTINCT {<ID = {"=Index(Concat(DISTINCT {<YEAR= {$(=(YEAR))}>} '|' & REACT& '|'), '|1|')
and FirstSortedValue(PRICE1+PRICE2, -DATE) > 0"}>} ID),ID))

the expression is working correctly but I have to add a condition on the date

FirstSortedValue(PRICE1+PRICE2, -DATE>20181231) > 0"}>} ID)

Count(aggr(Count(DISTINCT {<ID = {"=Index(Concat(DISTINCT {<YEAR= {$(=(YEAR))}>} '|' & REACT& '|'), '|1|')
and FirstSortedValue(PRICE1+PRICE2, -DATE>20181231)> 0"}>} ID),ID))

 

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be using set analysis

FirstSortedValue({<DATE = {[>$(=Date(MakeDate(2018, 12, 31), 'DateFieldFormatHere'))]}>} PRICE1+PRICE2, -DATE)

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

May be using set analysis

FirstSortedValue({<DATE = {[>$(=Date(MakeDate(2018, 12, 31), 'DateFieldFormatHere'))]}>} PRICE1+PRICE2, -DATE)
souadouert
Specialist
Specialist
Author

THANK YOU SUNNY

sunny_talwar
MVP
MVP

Your always welcome Souad 🙂