Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

format time error in Set Analysis

Hi,

I'm trying to get the maximum value on the date using Set Analysis.

first y created a variable:

Date(MAX(Date(FECHA_PL)),'DD/MM/YYYY')

the result is OK!

Screenshot_20.png

Then I use this variable in Set Analysis but it returns Error

Capture.PNG

---------------

it should work like this:

Screenshot_21.png

1 Solution

Accepted Solutions
Not applicable
Author

I tried everything and what worked for me was this

= AVG ({<FECHA_PL = {$ (= Chr (39) & Max (date (FECHA_PL, 'DD / MM / YYYY')) & Chr (39))}>} ValorIndicador)

View solution in original post

7 Replies
sunny_talwar

How about this:

=Avg({<FECHA_PL = {'$(=Text(MaxFechaPL))'}>} ValorIndicator)

swuehl
MVP
MVP

Try

=Avg( {<FECHA_PL = {'$(MaxFechaPL)'}>} ValorIndicador)

edit: Assuming your variable is defined with a leading equal sign.

Or just use

=Avg( {<FECHA_PL = {'$(=Date(MAX(Date(FECHA_PL)),'DD/MM/YYYY'))'}>} ValorIndicador)



Dates in Set Analysis

The Little Equals Sign

The Magic of Dollar Expansions

The Magic of Variables

vishsaggi
Champion III
Champion III

May be an opening bracket after max like = Avg( {<FECHA_PL = {'$(Max(FechaPL))'}>} ValorIndicador)

Is there a fieldname MaxFechaPL, i doubt you missed a bracket here ? Correct me...

Thanks,

V.

vishsaggi
Champion III
Champion III

Sorry Is MaxFechaPL is your variable name ? If Yes, follow what sunny and swuhel suggested.

Not applicable
Author

it doesn´t work 😕

Not applicable
Author

I tried everything and what worked for me was this

= AVG ({<FECHA_PL = {$ (= Chr (39) & Max (date (FECHA_PL, 'DD / MM / YYYY')) & Chr (39))}>} ValorIndicador)

Not applicable
Author

I tried everything and what worked for me was this

= AVG ({<FECHA_PL = {$ (= Chr (39) & Max (date (FECHA_PL, 'DD / MM / YYYY')) & Chr (39))}>} ValorIndicador)