Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

AGGR problem

This should be easy...

I'm trying to create a line chart which simply takes the last Stock entry to date. Somehow it doesn't aggregates properlly.

The reason i've used date island is that the client want to see inventory stand to date even though there were no transactions in that date.

Chart type: Line chart

Dimmension: Year, MonthYear, Date

Expression:



=Aggr(
max(
if([Inventory Date] <=aggr(max(Date),Date) and [Inventory Next Date] > aggr(max(Date),Date), [Inventory Stock Qty],0
)
),
Date
)


Ive attached file as example.

0 Replies