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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
MagMag31
Regular Visitor

find last date refresh by name of items

Hello,

i need yout help please
I have a table that contains several refresh dates and I need to display the last item by the last start date and the end date which corresponds to it

example :

MagMag31_0-1683724916396.png

 

 

result i want

MagMag31_1-1683724935691.png

 

 

thank you for you help

1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @MagMag31 

try like:

1) create a calculated table like:

Table = 
ADDCOLUMNS(
    DISTINCT(data[item]),
    "start refresh date",
    CALCULATE(MAX(data[start refresh date]))
)

2) join the new table with the data table on [start fresh date] column

FreemanZ_0-1683726757478.png

 

3) add two calculated columns like:

end refresh date = RELATED(data[end refresh date])
Duration = RELATED(data[duration])

 it worked like:

FreemanZ_1-1683726835385.png

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi @MagMag31 

try like:

1) create a calculated table like:

Table = 
ADDCOLUMNS(
    DISTINCT(data[item]),
    "start refresh date",
    CALCULATE(MAX(data[start refresh date]))
)

2) join the new table with the data table on [start fresh date] column

FreemanZ_0-1683726757478.png

 

3) add two calculated columns like:

end refresh date = RELATED(data[end refresh date])
Duration = RELATED(data[duration])

 it worked like:

FreemanZ_1-1683726835385.png

it works thank you so much !

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.