cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimB-GA Member
Member

how to calculate the lastest value in a time series

I have a simple time series that shows closing stock value by date,  I would like to return the value for the latest date.  In the following sample, the lastest date is 12/12/18 with a value of 271

 

Date	Value
12/12/18	271
12/11/18	261
12/10/18	260
12/07/18	264
12/06/18	274
12/05/18	264
12/04/18	275
12/03/18	266

Thanks!

 

Jim B

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: how to calculate the lastest value in a time series

try:

Last Date =
CALCULATE (
    SUM ( Table1[Value] ),
    LASTNONBLANK ( Table1[Date], SUM ( Table1[Value] ) )
)

View solution in original post

2 REPLIES 2
Super User
Super User

Re: how to calculate the lastest value in a time series

try:

Last Date =
CALCULATE (
    SUM ( Table1[Value] ),
    LASTNONBLANK ( Table1[Date], SUM ( Table1[Value] ) )
)

View solution in original post

JimB-GA Member
Member

Re: how to calculate the lastest value in a time series

Thanks!  Worked like a charm the first time.

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 285 members 3,493 guests
Please welcome our newest community members: