Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Most recent usage date

Status
Not open for further replies.

phongski

Technical User
Mar 5, 2014
1
Hello,

I have difficulties in returning the latest usage date for an inventory item using data as shown below.

Itemkey Transaction Type Last Used Date
#595 PPO 1/16/2013
#595 MRI 1/16/2013
#595 PPO 1/16/2013
#595 MRI 1/16/2013
#595 VRI 1/18/2013
#595 VRI 1/18/2013
#595 APM 2/6/2013
#595 APM 2/6/2013
#595 SSO 3/27/2013
#595 VRI 1/16/2013
#595 VRI 1/16/2013
#595 MRI 1/18/2013
#595 MRI 1/18/2013

I used following formula but the result did not turn out as expected.

if {INTXDH.Transactiontype} in ["APM" , "AIS", "SSO", "PM"]
then cstr(maximum ({INTXDH.Postdate},{INTXDH.Itemkey})) else
"No Usage"

Somehow, my formula only looks at the last record and returns “No Usage” in the example above instead of 03/27/2013. Could someone help me find a solution for this please? Thank you very much in advance for your time and help.

Phongski
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top