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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
yanzhao_LBS
Helper II
Helper II

file replace automatically

i get date from sharepoint folder and there will be 2 file for the 1 Powerbi Table. and the 2 file is version 1 and version 2. Now the default is the version 1 and version 2 file will be "append "

 for example:

 

the version 1 data:

filenameDateVendorproductQTY
Version202310052023-10-05Aiphone 1410
Version202310052023-10-05Aiphone 1520
Version202310052023-10-05Biphone 152
Version202310052023-10-05Ciphone 124
Version202310052023-10-05Ciphone 133
Version202310052023-10-05Diphone 146
Version202310052023-10-05Diphone 159

 

 

 

the version 2 data :

 

filenameDateVendorproductQTY
Version202310252023-10-25Aiphone 143
Version20231025 2023-10-25Aiphone 153
Version20231025 2023-10-25Ciphone 123
Version20231025 2023-10-25Ciphone 133
Version20231025 2023-10-25Diphone 143
Version20231025 2023-10-25Diphone 153

 

 

what i want is when there is only version 1 file existing ,the table just get the version 1 data

when there are version 1 version 2 existing, just keep the version 2 ( means keep the latest date file) , which means for the above 2 version file ,i only need the version 2 data,as it has the later date. 

 

is there any way to achieve this?

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

When you connect to the sharepoint folder, you sort the file list by an appropriate criteria (for example file name descending) and then you grab the binary of the first row, like #"Sorted Rows"[Contents]{0}

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

When you connect to the sharepoint folder, you sort the file list by an appropriate criteria (for example file name descending) and then you grab the binary of the first row, like #"Sorted Rows"[Contents]{0}

sounds a practicable approach ,i will try that and accept this as a solution when it works.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.