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
Anonymous
Not applicable

how to use a formula as a source for power Query then save that table and append it to the previous

Hi Everyone,

 

I need help with this. So I need 2 things:

1. to search in a list of links on a website for the link with today's date and pull that into Power BI as a source.
 Ex: Today's file will be read as follows = 

                                                        weblink + "PUB_Adequecy2_"+Today date (YYYYMMDD) +".xml"
 so how do you make the Source = Xml.Tables(Web.Contents(weblink + "PUB_Adequecy2_"+Today date (YYYYMMDD) +".xml")

2. Then, the pulled table needs to append to the previous day's table. To build the dataset and have history to compare against moving forward. My thoughts are to make that top part a function that power query loops through and append to the previous day. Still not sure how to do that though

 

Thank you all for your help.

 

 

 

2 REPLIES 2
Anonymous
Not applicable

Actually, "+" is not Concatenate in M. Replace the "+" with "&", which concatenates text.

 

--Nate

xzmiche
Resolver I
Resolver I

Try this:

let
SourceToday = Xml.Tables(Web.Contents(weblink + "PUB_Adequecy2_"+DateTime.ToText(DateTime.LocalNow(),"yyyyMMdd") +".xml"),
SourceYesday = Xml.Tables(Web.Contents(weblink + "PUB_Adequecy2_"+DateTime.ToText(Date.AddDays(DateTime.LocalNow(),-1),"yyyyMMdd") +".xml"),
Combined=Table.Combine({SourceYesday,SourceToday})
in
Combined

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 Kudoed Authors