Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.
Hi all,
Using Power Query in Power BI.
I scraped a table of Federal Holidays for 2021.
I converted it into a function, created a list of years, and tried to invoke the function.
2022 came down without issue.
However, in 2023 I received the error: "The column 'Federal holiday' of the table wasn't found"
I tried again using 2023 as the base year and converted to a function.
This time I added Text.Trim around the headers but I get the same error.
Here is the url for 2021:
https://www.calendarpedia.com/holidays/federal-holidays-2021.html
Thanks,
-w
Nothing special
let
fx = (yr as number) =>
let
Page = Web.Page(Web.Contents("https://www.calendarpedia.com/holidays/federal-holidays-" & Text.From(yr) & ".html")),
Navi = Page{0}[Data],
Tb = Table.RemoveLastN(Table.Skip(Navi)),
#"Promoted Headers" = Table.PromoteHeaders(Tb)
in
#"Promoted Headers",
Invocation = List.Transform({2020..2030}, fx),
#"Combined Tables" = Table.Combine(Invocation)
in
#"Combined Tables"
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LeanAndPractise(Everyday) ) |
Check out the November 2023 Power BI update to learn about new features.
Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.