Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Somasundaram
Creator III
Creator III

Firstsortedvalue issue with date

Hi All,

 

maxdate.JPGI am facing the issue with Firstsortedvalue function. attached screenshot,

Two date having same values, but i need the max date of the two dates,

=DATE(FirstSortedValue( DISTINCT DATE,-AMOUNT,'MM/DD/YYYY').

If using this expression, it gives 12/28/2015. But i want to show 12/29/2015.

Pls. suggest.

Thanks in advance,

Somasundaram 

 

 

 


-Somasundaram

If this resolves your Query please like and accept this as an answer.
Labels (1)
1 Solution

Accepted Solutions
Somasundaram
Creator III
Creator III
Author

Using this expression I can able to get the correct value
=DATE(DISTINCT FirstSortedValue(DATE,-(AMOUNT+DATE*0.0001)),'MM/DD/YYYY')


-Somasundaram

If this resolves your Query please like and accept this as an answer.

View solution in original post

8 Replies
tresesco
MVP
MVP

You can try adding date field with the amount filed, like:

=DATE(FirstSortedValue( DISTINCT DATE,-AMOUNT-DATE,'MM/DD/YYYY')

 

If your date field is really a date field (number the the back-end), this should work.

Somasundaram
Creator III
Creator III
Author

Thank for your reply.

If i am using with date value, i am getting  maximum date value.

not showing the correct values


-Somasundaram

If this resolves your Query please like and accept this as an answer.
tresesco
MVP
MVP

Could you share your sample app?
Somasundaram
Creator III
Creator III
Author

 

-Somasundaram

If this resolves your Query please like and accept this as an answer.
tresesco
MVP
MVP

Do you need only those two columns or you have something else as dimension?
Somasundaram
Creator III
Creator III
Author

I need date values based on the max amount.
Provide the both scenarios.
Thanks tresesco.

-Somasundaram

If this resolves your Query please like and accept this as an answer.
Somasundaram
Creator III
Creator III
Author

Using this expression I can able to get the correct value
=DATE(DISTINCT FirstSortedValue(DATE,-(AMOUNT+DATE*0.0001)),'MM/DD/YYYY')


-Somasundaram

If this resolves your Query please like and accept this as an answer.
tresesco
MVP
MVP

Great. So you can close the thread by marking correct/helpful replies.