Skip to main content

New to Qlik Sense

If you’re new to Qlik Sense, start with this Discussion Board and get up-to-speed quickly.

Announcements
Qlik Cloud Maintenance is scheduled between March 27-30. Visit Qlik Cloud Status page for more details.
cancel
Showing results for 
Search instead for 
Did you mean: 
Riaandk85
Contributor
Contributor

Display KPI of latest month

I am a rookie and are struggling with a few things.

I've got daily data with auto aggregated date fields:  YearMonth ,MonthAgo, YearsAgo etc.

Im trying to inlclude a KPI to display the average value of the last month which will be 2022-Jun

I've got the following expression: =Sum({<[_id.autoCalendar.YearMonth]={"$(=Max(_id.autoCalendar.YearMonth))"}>}[site_area_per_visit]) , but it keeps giving a 0 value.

 

Please assist

 

Riaandk85_1-1655992877010.png

 

Riaandk85_0-1655992787622.png

 

 

Labels (1)
1 Reply
Riaandk85
Contributor
Contributor
Author

Correction, the expression is as follow as I need to display the average, but then the value is given as "-"

=Avg({<[_id.autoCalendar.YearMonth]={"$(=Max(_id.autoCalendar.YearMonth))"}>}[site_area_per_visit])

 

Riaandk85_0-1655993102026.png