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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
MSMKM
Helper I
Helper I

How to find Latest date from below data

Hi Team,

 

i have table and need to find Latest date

 

Date      Item ID               Value

18-07-2022        200        5000$

19-07-2022        200        6500$

18-07-2022        300        3000$

19-07-2022        300        2000$

21-07-2022        300        1000$

19-07-2022        400        2500$

21-07-2022        400        3500$

22-07-2022        400        4000$

4 REPLIES 4
MSMKM
Helper I
Helper I

Hi DimaMD,

 

I Need Measure how can acheive ?

 

DimaMD
Solution Sage
Solution Sage

@MSMKM  try it

DimaMD_0-1680762887990.png

 


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com
Migasuke
Super User
Super User

Hi @MSMKM ,

If you just want simple last date, you can use following syntax with "LASTDATE" function:

Last Date = LASTDATE('Table'[Date])
result:
Migasuke_0-1680762708688.png

In case you want value for the last date, you can adjust the formula:

Last Date Value = CALCULATE(SUM('Table'[Value]),LASTDATE('Table'[Date]))
result:
Migasuke_1-1680762837254.png


Just be sure, you have Date column as a Date data type and not text. The same applies for Value column. Be sure you have number instead of text.

 



If my answer was helpful please give me a Kudos or even accept as a Solution.

Let's connect on LinkedIn!

DimaMD
Solution Sage
Solution Sage

hi, @MSMKM Do you need the latest date on your ID? Should it be a measure or a calculated column?


__________________________________________

Thank you for your like and decision

__________________________________________

Greetings from Ukraine

To help me grow PayPal: embirddima@gmail.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors