Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Stock position on a given date

I have a table with the movement of stock to the position on .  

I managed to get the most earliest date that the informed variable, but can not get the amount in stock on the date .



Portugues:

Eu tenho uma tabela com o movimento do estoque para a posição ligado.
Eu consegui a data mais mais antiga que a variável informada , mas não pode obter a quantidade em estoque na data .


Untitled.png

1 Solution

Accepted Solutions
sunny_talwar

How does this look?

Capture.PNG

Expression used:

=FirstSortedValue({<DataMovimentoPosicao = {"<=$(vDataBase)"}>} Aggr(Sum({<DataMovimentoPosicao = {"<=$(vDataBase)"}>}QtdeEstoquePosicao), DataMovimentoPosicao, CodigoDepositoPosicao),

-Aggr(DataMovimentoPosicao, DataMovimentoPosicao, CodigoDepositoPosicao))

View solution in original post

12 Replies
sunny_talwar

This?

Capture.PNG

Anonymous
Not applicable
Author

Yes, Thank you...

Anonymous
Not applicable
Author

Making new tests to the data, I noticed that some items are not correct. The following example.Sem título.png

sunny_talwar

Can you post this application?

Anonymous
Not applicable
Author

attached .qvw

sunny_talwar

I guess this is not a good example because in this case my earlier provided expression seems to work well. Can you provide another example where my expression is causing an issue for you

Capture.PNG

Anonymous
Not applicable
Author

If you use the function Collapse All without filter , will not bring values.

Anonymous
Not applicable
Author

Someone with some new suggestions?

Alguém com alguma nova sugestão?

sunny_talwar

What is the expected output based on collapsing and non-collapsing of the chart? Provide this based on two set of different selections because I am still not able to understand the issue