cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular Visitor

LASTNONBLANK result not pulling in correctly

When I use LASTNONBLANK it pulls in the last value correctly unless the last value is less than the previous value in the table. 

 

I have a table with my last value as 176,000 but it pulls in the value above it with the value of 176,599.  If I increase my bottom row to a value larger than 176,599 it then is pulled in correctly.

 

My measure is:          Youtube Total Subscribers = LASTNONBLANK('Youtube Stats'[Total Subscriber Count],1)

 

Is there something I need to add if the bottom row value is less than the previous row?

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: LASTNONBLANK result not pulling in correctly

@lfink

 

FirstNonBlank /LastNonBlank return the first/last value respectively in the column…..after sorting the column in its native Ascending Order..

 

They are quite similar to Min and Max functions in many ways

 

If you want the last row value.....you can add an Index Column in your table and then use it to get the last value

 

Please check this similar post

 

http://community.powerbi.com/t5/Desktop/Last-Column-Value/m-p/393009#M179233

Try my new Power BI game Cross the River

View solution in original post

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: LASTNONBLANK result not pulling in correctly

@lfink

 

FirstNonBlank /LastNonBlank return the first/last value respectively in the column…..after sorting the column in its native Ascending Order..

 

They are quite similar to Min and Max functions in many ways

 

If you want the last row value.....you can add an Index Column in your table and then use it to get the last value

 

Please check this similar post

 

http://community.powerbi.com/t5/Desktop/Last-Column-Value/m-p/393009#M179233

Try my new Power BI game Cross the River

View solution in original post

Highlighted
Regular Visitor

Re: LASTNONBLANK result not pulling in correctly

@Zubair_Muhammad

 

Thanks! I used the measure fix and it worked great!

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors