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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Max Date in table returns only values for the first row

Hello community,

as you always have good ideas for solving a Problem, here is as follows:

I have data with an article number, testing date, a delivery quantity and the testing result (amount of failures)

article numbertesting datedelivery quantityamount of failures
50501011101.01.199051
50501011101.02.199050
50501011201.02.19901500

Then I created a table, that Shows the latest 3 testing results per article.

Quality Quotient: 1 - (failures / delivery quantity)

but when I use the max(date) formula the table will only return the correct value for the first line...

1 -

sum(
{< TestingDate
  = {"$(vPE1)"}
>}
AmountFailures
)

/

sum(
{<
TestingDate  = {"$(vPE1)"}
>}

AmountFailures

with  vPE1 = "=max(TestingDate,1)"

If I only select one article, the calculation suddenly works...

Thank you for your help,

Kevin

10 Replies
Anonymous
Not applicable
Author

I will look into both Solutions today, as I am back in the Office.

Thank you so much for your help!

Kevin