Expand my Community achievements bar.

Wondering how Workfront Proof works? Join our AMA on May 8th and ask our Community experts!
SOLVED

DMAX Returning A Date One Day Early

Avatar

Level 4

Hello,

 

I have a calculated field that displays the latest date among a selection of fields. One such field is a multi-checkbox, each with their own start date field. I am attempting to pull the latest date from these selections but for some reason my calculation spits out a date that is one day earlier than the latest date.

 

For example, if the latest date in a selection of multiple fields is 3/30, my calculation will say 3/29.

 

Here is the specific part of my code that relates to the Multi-checkbox field:

 

 

 

        DMAX(
            {DE:Start Date - xx},
            {DE:Start Date - xx},
            {DE:Start Date - xx},
            {DE:Start Date - xx},
            {DE:Start Date - xx},
            {DE:Start Date - xx},
            {DE:Start Date - xx},
            {DE:Start Date - xx},
            {DE:Start Date - xx},
            {DE:Start Date - xx}
        ), ""
    ),

 

 

Here you can see that the dates are indeed 3/30 but the calculation (last column) is 3/29.

Eric_D_Miller_0-1741877774414.png

 

 

Anything look off? Thank you!

 

-Eric

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Got it. 

So I recreated this - and it seems to work : I use the same DMAX expression in the calculated field and in the dynamic field in the report. All date fields are date (without time). Except for the silly date format (calculated field, I am in EMEA).

DMAX({DE:date1},{DE:date2},{DE:date3},{DE:date4})

SveniX_0-1741955255879.png

 

 

View solution in original post

5 Replies

Avatar

Community Advisor

Are ALL the date fields dropdowns? I'm not tracking on " One such field is a multi-checkbox, each with their own start date field"

 

My hunch is that one or more of the fields is treated like a string instead of a date value. 

Avatar

Level 4

Hi Sven,

Confirming that all of the fields I am keying off are Date fields.

 

When I say "One such field is a multi-checkbox, each with their own start date field" I mean that I have a checkbox field that when each box is selected, a different date field populates. I would like the latest date of those selections to populate in my calculated field but it appear to take one day away instead.

Avatar

Correct answer by
Community Advisor

Got it. 

So I recreated this - and it seems to work : I use the same DMAX expression in the calculated field and in the dynamic field in the report. All date fields are date (without time). Except for the silly date format (calculated field, I am in EMEA).

DMAX({DE:date1},{DE:date2},{DE:date3},{DE:date4})

SveniX_0-1741955255879.png

 

 

Avatar

Community Advisor

@Eric_D_Miller did you get it to work? 

Avatar

Administrator

Hello @Eric_D_Miller 

I wanted to let you know that I'm marking a previous response as the correct solution. If this is incorrect or if you need more help from the community, please let me know, and I'll remove the marked solution.