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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
ALLALOU
Contributor
Contributor

KPI with Max date

Hello,

I Want to create a new KPI with the value of max date : 

 

example :

Capture.PNG

 

So my KPI I want diplay value : 109

Thanks

 

 

1 Solution

Accepted Solutions
dplr-rn
Partner - Master III
Partner - Master III

there is an extra ) within the set analysis

=Sum({<[Date.autoCalendar.Date]={"$(=Max(Date.autoCalendar.Date))"}>}[Volume de commandes Année N])

View solution in original post

10 Replies
dplr-rn
Partner - Master III
Partner - Master III

try somehting like below expression in your kpi object

Sum( {<Date={"$(Max(Date))"}>} Sales)

ALLALOU
Contributor
Contributor
Author

this solution return 0 

dplr-rn
Partner - Master III
Partner - Master III

try this too

Sum( {<Date={"$(=Max(Date))"}>} Sales)

ALLALOU
Contributor
Contributor
Author

the same, resull is 0 

dplr-rn
Partner - Master III
Partner - Master III

did a quick and dirty tryout in one of my apps. this is the expression i used.

=Sum({<OrderDate={"$(=Max(OrderDate))"}>}LineSalesAmount)

similar to one i shared before

share the exact expression you used

ALLALOU
Contributor
Contributor
Author

I use this expression :

Capture.PNG

 

 

dplr-rn
Partner - Master III
Partner - Master III

substitute the Date with your own date fields i see from original post column names is different

ALLALOU
Contributor
Contributor
Author

I use this expr now :

 

=Sum({<[Date.autoCalendar.Date]={"$(=Max(Date.autoCalendar.Date)))"}>}[Volume de commandes Année N])

 

but always the result is 0

 

Capture.PNG

dplr-rn
Partner - Master III
Partner - Master III

there is an extra ) within the set analysis

=Sum({<[Date.autoCalendar.Date]={"$(=Max(Date.autoCalendar.Date))"}>}[Volume de commandes Année N])