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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

how to create an user input to edit web address

I have a query that is based on a web address.

the address changes based on the date

 

is there a way of inputting the date required?

which then can be 'sculptured' to load the correct web page?

 

1 ACCEPTED SOLUTION
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my test, you could refer to below formula in Advanced language in query editor:

(para as date) as table =>
let
    Source = Web.Page(Web.Contents("https://www.accuweather.com/en/sg/singapore/300597/december-weather/300597?monyr="&para)),
    Data0 = Source{0}[Data],
    #"Changed Type" = Table.TransformColumnTypes(Data0,{{"Sunday", type text}, {"Monday", type text}, {"Tuesday", type text}, {"Wednesday", type text}, {"Thursday", type text}, {"Friday", type text}, {"Saturday", type text}})
in
    #"Changed Type"

See the highliaght code, after you have applied it, you could choose the data to invoke the function:

1.PNG

In this example, I need to ues the text due to I have not found the situable web source:

1.PNG

Result:

2.PNG

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered to close this topic?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my test, you could refer to below formula in Advanced language in query editor:

(para as date) as table =>
let
    Source = Web.Page(Web.Contents("https://www.accuweather.com/en/sg/singapore/300597/december-weather/300597?monyr="&para)),
    Data0 = Source{0}[Data],
    #"Changed Type" = Table.TransformColumnTypes(Data0,{{"Sunday", type text}, {"Monday", type text}, {"Tuesday", type text}, {"Wednesday", type text}, {"Thursday", type text}, {"Friday", type text}, {"Saturday", type text}})
in
    #"Changed Type"

See the highliaght code, after you have applied it, you could choose the data to invoke the function:

1.PNG

In this example, I need to ues the text due to I have not found the situable web source:

1.PNG

Result:

2.PNG

 

Regards,

Daniel He

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.