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
lzorn
Frequent Visitor

Lookup update by last know date

Hi, 

 

I have a ''Current'' table, in which updates are logged. This table contains every new update that comes in (System, date update, update status). And a second table in which i want to show the latest update for a system (System, last update status).

 

I want to filter on date so that the last known update is shown. Can somebody help me with the right code for Power BI?

 

Kind Regards,

 

 

Léjon

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @lzorn,

 

Maybe you can try to use summarize function to create new table with last updated data.

Sample table formula:

last status =
SUMMARIZE (
    Table,
    [System],
    "last date", LASTDATE ( Table[date update] ),
    "Last status", LASTNONBLANK ( Table[update status], [update status] )
)

 

In addition, you can also take a look at following link about create a measure to lookup value.

DAX Last Date - Other field

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

Share some data and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-shex-msft
Community Support
Community Support

Hi @lzorn,

 

Maybe you can try to use summarize function to create new table with last updated data.

Sample table formula:

last status =
SUMMARIZE (
    Table,
    [System],
    "last date", LASTDATE ( Table[date update] ),
    "Last status", LASTNONBLANK ( Table[update status], [update status] )
)

 

In addition, you can also take a look at following link about create a measure to lookup value.

DAX Last Date - Other field

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.