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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
mattih
Frequent Visitor

Indicate when a row from previous files is missing in newer file

Hi,

I have a SharePoint folder connected data model with a table that has a load of excel files that are added every week. The table looks like this:

mattih_0-1704287544648.png

Now I would need to make a customn column named "Removed" that shows the datekey when a particular technology is no longer found. For example the technologies Windows Server, Windows Server 2012 and RHEL 6 are still included in date 12.12.2023 but are not present in date 19.12.2023. 

 

I would like the custom column Removed to show data like this:

mattih_0-1704288988536.png

Is this possible? Thanks in advance!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mattih , A new column

 


Removed =
var _max = minx(filter(Table, [System] = earlier([System]) && [DateKey] > Earlier([DateKey])), [DateKey])
return
if(isblank(minx(filter(Table, [System] = earlier([System]) && [Technology] = earlier([Technology]) && [DateKey] =_max ), [DateKey])), _max, blank())

 

 

Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=17820s

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@mattih , A new column

 


Removed =
var _max = minx(filter(Table, [System] = earlier([System]) && [DateKey] > Earlier([DateKey])), [DateKey])
return
if(isblank(minx(filter(Table, [System] = earlier([System]) && [Technology] = earlier([Technology]) && [DateKey] =_max ), [DateKey])), _max, blank())

 

 

Power BI DAX- Earlier, I should have known Earlier: https://youtu.be/CVW6YwvHHi8
https://www.youtube.com/watch?v=cN8AO3_vmlY&t=17820s

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thank you @amitchandak this worked perfectly!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors