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: 
Diana
Contributor
Contributor

sum of first min date

Dear ALL, I have an issue, please advice if you know the answer.

 

I am struggling to find  out the sum of first min date in my list:

It means that I need just 15 639 EUR.

 

The function that I use is:

=sum({<Date = {"$(=min(Date))", [Contract_ID]} >} [Lease Liability - opening])

, but it gives me (15 639+10 161) = 25 800, while I need just 15 639.

 

Please let me know which is the correct function to find it out.

Thank you.

 

Diana

Labels (1)
5 Replies
arulsettu
Master III
Master III

Hi,

you have different values in the same min date. that is the reason you get the number. share the app to check 

maybe you have a filter to get the expected output

 

 

shiveshsingh
Master
Master

As you can also see in image, you have 2 values corresponding to single Date.

May be it is coming due to that, can you check in your model? 

Shubham_Deshmukh
Specialist
Specialist

Try this : 

MinString({<date={"=$(=min(date)"}>} [Lease Liability - opening])

Diana
Contributor
Contributor
Author

thank you for suggestion

Shubham_Deshmukh
Specialist
Specialist

Diana, pls close the thread.