Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Uzumaki_N
Contributor III
Contributor III

In a table how to fetch the last inserted records for a dimension ?

 
1 Solution

Accepted Solutions
Chanty4u
MVP
MVP

Then create a record number field in your load script:

LOAD

     Code,

     Date,

     Value,

     RecNo() as RecNr

FROM ...;

 

Then, in your chart table with dimension Code, use two expressions:

 

=FirstSortedValue(Date, -RecNr)

 

=FirstSortedValue(Value, -RecNr)

View solution in original post

3 Replies
Chanty4u
MVP
MVP

Then create a record number field in your load script:

LOAD

     Code,

     Date,

     Value,

     RecNo() as RecNr

FROM ...;

 

Then, in your chart table with dimension Code, use two expressions:

 

=FirstSortedValue(Date, -RecNr)

 

=FirstSortedValue(Value, -RecNr)

Uzumaki_N
Contributor III
Contributor III
Author

Thanks it worked.

Chanty4u
MVP
MVP

Great  . !  please accept as solution so that it will help for others.