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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Refresh issue with SharePoint.Tables in function

I've realised that my design to update a report with the latest status of various Task lists on SharePoint online won't work out the box (I'm getting the dreaded "You can't schedule refresh for this dataset because one or more sources currently don't support refresh. " message) but I'm wondering whether there's a workaround or whether I need to go back to the drawing board and do a complete redesign.....

 

I have a function which is called to pull the data from various SharePoint Site Task Lists with two parameters List URL and Task List name:

 

let GetTasks=(HouseURL as text, TaskList as text) as table =>

let
    Source = SharePoint.Tables(HouseURL, [ApiVersion = 14]),
    Tasks1 = Source{[Name=TaskList]}[Content],

    #"Removed Duplicates" = Table.Distinct(#"Tasks1", {"TaskName", Comparer.OrdinalIgnoreCase}),
    #"Removed Other Columns" = Table.SelectColumns(#"Removed Duplicates",{"TaskName", "PriorityValue", "TaskStatusValue", "StartDate", "DueDate", "Completed", "Id"}),
    #"Extracted Date" = Table.TransformColumns(#"Removed Other Columns",{{"StartDate", DateTime.Date}, {"DueDate", DateTime.Date}}),
    #"Sorted Rows" = Table.Sort(#"Extracted Date",{{"TaskStatusValue", Order.Ascending}}),
    #"Filtered Rows" = Table.SelectRows(#"Sorted Rows", each ([TaskStatusValue] = "Completed")),
    #"Sorted Rows1" = Table.Sort(#"Filtered Rows",{{"DueDate", Order.Ascending}}),
    #"Kept Last Rows" = Table.LastN(#"Sorted Rows1", 1),
    #"Filtered Not Completed" = Table.SelectRows(#"Sorted Rows", each ([TaskStatusValue] <> "Completed")),
    #"Sorted Rows2" = Table.Sort(#"Filtered Not Completed",{{"DueDate", Order.Ascending}}),
    #"Kept First Rows" = Table.FirstN(#"Sorted Rows2",3),
    #"Sorted Rows3" = Table.Sort(#"Kept First Rows",{{"Id", Order.Ascending}}),
    #"Appended Query" = Table.Combine({#"Kept Last Rows", #"Sorted Rows3"}),
    #"Added Index" = Table.AddIndexColumn(#"Appended Query", "Index", 1, 1)
in
    #"Added Index"

in GetTasks

 

This works beautifully in Power BI Desktop, but doesn't in the service. 😕

 

All sites reside on the same base URL, so credentials for one will work for all the others.

 

I've had a look at various posts here and on Chris Webb's blog, but nothing gives me that aha! moment 😞

 

Any ideas, workarounds, fixes?

 

Thanks.

 

Ian

1 REPLY 1
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

 

For this error message
 "You can't schedule refresh for this dataset because one or more sources currently don't support refresh. "

It indicates that the data source is not a supported schedule refresh data source. Currently, there is no other approach to work around this feature.

 

If you have any concern on this feature, you can submit your idea on the link below. If this feature was mentioned by mulitple users, product team will consider to add this feature to next release.
https://ideas.powerbi.com/forums/265200-power-bi-ideas

 

Regards,

Charlie Liao

 

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.