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

Announcements
Discover the Trends Shaping AI in 2026: Register Here!
cancel
Showing results for 
Search instead for 
Did you mean: 
TomBond77
Specialist
Specialist

Minimum of date (error in expression)

Hi experts

I have created the following formula: Sum({<date={"<=$(=max([date]"))}, Year >} [Value])

I am getting this error message: 

TomBond77_1-1628492692370.png

Where is the problem?

Thanks

Tom

3 Replies
tresesco
MVP
MVP

Quote at the wrong place?

Sum({<date={"<=$(=max([date]))"}, Year >} [Value])

And even if this error correction doesn't help, try putting the date formatting function like:

Sum({<date={"<=$(=date(max([date])))"}, Year >} [Value])

 

TomBond77
Specialist
Specialist
Author

Hi 

Still getting an error message with is formula:

Sum({<[Actual start: Execution (date)]={"<=$(=date(max([Actual start: Execution (date)])))"}, [Order: Manufact.Order(key)]>} [1])

Error message:

TomBond77_0-1628594822678.png

 

Any ideas.

thanks, Tom

TomBond77
Specialist
Specialist
Author

meanwhile it is working. Instead of [1] as value I took a measure.

But now each row / data record is calculated by this formula. I only need the minimum date of an order of a preselected year. Therefore I think the year in the expression is not necessary anymore(?)