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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
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))

 

1 Solution

Accepted Solutions
sunny_talwar

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

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

Your always welcome Souad 🙂