Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Mp1977
Helper II
Helper II

Last Value in the table

Hi !

I'm trying to get last value in the table that represent the actual balance. I tried LASTNONBLANK but it need a expression. I used 1 as the expression but I got the larger number for the last date, 22.908, but I need the number 22.818.


last value.png

 

 

 

 

 

 

I appreciate any help.

Thank you

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @Mp1977 ,

 

Create an index column in the query editor then create a measure like this.

Measure 2 = CALCULATE(LASTNONBLANKVALUE('Table (2)'[Index],SUM('Table (2)'[value])))

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
V-lianl-msft
Community Support
Community Support

Hi @Mp1977 ,

 

Create an index column in the query editor then create a measure like this.

Measure 2 = CALCULATE(LASTNONBLANKVALUE('Table (2)'[Index],SUM('Table (2)'[value])))

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@V-lianl-msft ,

Thank you very much ! It work quite well.

amitchandak
Super User
Super User

@Mp1977 ,

Try LASTNONBLANKVALUE(Table[Date], [Measure])

samdthompson
Memorable Member
Memorable Member

@Mp1977 

 

=CALCULATE([Measure],LASTDATE('Date'[Date]))
 
Throw that into a card and you will see the max balance
 
 
//If this is a solution please mark as such
// if this is a solution please mark as such. Kudos always appreciated.

Thank you for the reply ! But I need the last row value, the Max will bring other value than the last one, with the balance is higher at the beggining of the day.

az38
Community Champion
Community Champion

@Mp1977 

whats logic for the last value? any hint?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Hi ! The logic is that number is the last row in the table.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.