Jump to content

This topic is 7151 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Last ( Test History::Test Received )

In our portal (test history) there is a field for the Test Recieved (date). How can I use the above calculation to always show the last test received date EVEN if it is blank (not entry)?

Right now it will just default to the last date found in the portal records.

Posted (edited)

Sort portal by Test_Received_Date descending.

Your_Calculation=TestHistory::Test_Recevied_Date

Edited by Guest
Posted

That was my initial thought as well, until I tested it and found that a record with an empty date field still got sorted as the last, no matter if the sort order is ascending or descending.

So I created another field DateTest, calculation :o

If(IsEmpty(date);0;GetAsNumber(date))

Then sort your relationship on this new field and it should work. See attachment.

HTH,

Peter

Date.zip

Posted

Hey Peter thanks! I was a little confused about that at first but it worked! I also put it as GetAsDate

If(IsEmpty(Test History::Test Received);"";GetAsDate(Test History::Test Received))

And then I sorted the relationship by test issue date descending

This topic is 7151 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.