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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
ym
Contributor II
Contributor II

FirstSortedValue

I have the following formula: 

sum(aggr(FirstSortedValue([Stock_Value],-Date),Number.Product))

The formula gives me per product the value from the last  available date. 

The formula should now also take the Date_ID_number (highest Date_ID_number) into account in addition to the date.

Furthermore only certain years should be able to be taken into account. e.g. per product last stock_value from 2021 .

How can I do this?

Labels (1)
0 Replies