Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am trying to pull my companies fixed assets and it is extremely over stated. First issue is it is doubling up assets for multiple countries USA and Canada. I have added AffiliateCode = 77048 to the Where clause and that seems to have fixed that issue but our fiscal year ends in 03/31/YY. Before the year rolled over this wasn't an issue.
The 2nd issue is there are 2 record dates on some assets and I am trying to pull the newest date only. I am trying to use FirstSortedValue with a minus weight to get the "last value". Below is the code I am using. What am I doing wrong?
FirstSortedValue() in the script is used with a group by clause to specify the context within which the function should operate.
Try like this.
Inner Join (famaster_mst)
/*--Max Record Date---*/
LOAD fa_num,
Max(RecordDate) as RecordDate
Resident Table
Group By fa_num;
FirstSortedValue() in the script is used with a group by clause to specify the context within which the function should operate.
Try like this.
Inner Join (famaster_mst)
/*--Max Record Date---*/
LOAD fa_num,
Max(RecordDate) as RecordDate
Resident Table
Group By fa_num;
Good morning BrunPierre,
I ended up using the code below and that fixed it.