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! Learn more

Reply
Devtr
Helper III
Helper III

Is it possible to have a new PB table that holds each file's summary data, even if it gets removed?

Hello PB teachers.

I get files for the orders for a particular month randomly. It has a naming rule. That way I tell Power Query what month-year is for and when it was submitted. For example:

Orders_01-2023_12-31-2022

01-2023 is the month and year for the orders received.

12-31-2022 is the report date.

These files have three simple columns. Order date, quantity, and amount.

order_dateqtyamt
1/1/2023501500
1/10/2023751900
1/15/2023351200
1/25/202310250

 

It will look like this after adding two more columns:

Devtr_0-1673636103623.png

 

 

I get the order files randomly. We want to keep 2 to 4 of the latest files in the folder for the PB. And delete the old files.

My goal is to keep track of the pace of the orders!

 

Is it possible to have a new PB table that holds each file's summary data, even if it gets removed?

And this should start on the first day of the month and end on the last day of the month each month.

 

The summary data can be:

report_dateorders_totalqty_totalamt_total
1/1/202373158950
1/3/2023836010650
1/4/20231042012200
1/5/20231355016100
1/8/20231454516000
1/11/20231658517150

 

I have attached the link here to download the order-submitted Excel files from 12-31-2022 to 01-11-2023 with the Pbix file.

There is an Excel file for the desired table as well.

 

Thank you so much.

 

@amitchandak 

@Ashish_Mathur 

@FreemanZ 

 

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

i do not think that is possible.  If you want the functionality to add files, then remove files will also update the table on refresh.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Padycosmos
Solution Sage
Solution Sage

Hi @Padycosmos 

How does this work after the data files are removed? Because I want to keep all the summary data.

Thank you for your reply.

In that case ,y ou can create a New table using the Summarize() dax function. https://learn.microsoft.com/en-us/dax/summarize-function-dax

 

What happens when I remove some data files and add new ones?

Will it change the data in that table?

Thanks.

Sorry, I have not tried adding and removing files and so am unable to say.

I added a table with Summarize function:

Tbl_Order_Pace = 
SUMMARIZE('Orders',Orders[report_date],
    "Total_Orders",COUNT(Orders[order_date]),
    "Qty_Total",SUM(Orders[qty]),
    "Amt_Total",SUM(Orders[amt]))

But after removing files and adding new ones, it removed the data related to those deleted files as well. 

I don't know what to do.

 

The only option I can think of is to export the summarized table as a csv file .

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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