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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
dmbd1904
Helper III
Helper III

This dataset includes a dynamic data source. Since dynamic data sources aren't refreshed

Hi, my solution works great in Power BI desktop but I'm having an issue in the service. Can anybody help?

 

dmbd1904_0-1614508160367.png

 

 

 

(VarURL as text)=>
let
Source = Json.Document(Web.Contents(VarURL)),
#"Converted to table" = Table.FromList(Source, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
#"Expanded Column1" = Table.ExpandRecordColumn(#"Converted to table", "Column1", {"fld_uid", "fld_nodeid", "fld_id", "fld_date_raised", "fld_originator", "fld_organisation", "fld_type", "fld_zone", "fld_level", "fld_apt_number", "fld_area", "fld_description", "fld_assigned_to_org", "fld_assigned_to", "fld_target_date", "fld_date_closed", "fld_timestamp", "fld_deletetime"}, {"fld_uid", "fld_nodeid", "fld_id", "fld_date_raised", "fld_originator", "fld_organisation", "fld_type", "fld_zone", "fld_level", "fld_apt_number", "fld_area", "fld_description", "fld_assigned_to_org", "fld_assigned_to", "fld_target_date", "fld_date_closed", "fld_timestamp", "fld_deletetime"}),
#"Renamed columns" = Table.RenameColumns(#"Expanded Column1", {{"fld_zone", "Location 1"}, {"fld_level", "Location 2"}, {"fld_area", "Location 3"}, {"fld_apt_number", "Unit"}})
in
#"Renamed columns"

 

 

let
Source = #"Inspections Json URLs",
#"Invoked Custom Function" = Table.AddColumn(Source, "Json", each #"Inspections Function"([Json URL])),
#"Expanded Json" = Table.ExpandTableColumn(#"Invoked Custom Function", "Json", {"fld_uid", "fld_nodeid", "fld_id", "fld_date_raised", "fld_originator", "fld_organisation", "fld_type", "Location 1", "Location 2", "Unit", "Location 3", "fld_description", "fld_assigned_to_org", "fld_assigned_to", "fld_target_date", "fld_date_closed", "fld_timestamp", "fld_deletetime"}, {"fld_uid", "fld_nodeid", "fld_id", "fld_date_raised", "fld_originator", "fld_organisation", "fld_type", "Location 1", "Location 2", "Unit", "Location 3", "fld_description", "fld_assigned_to_org", "fld_assigned_to", "fld_target_date", "fld_date_closed", "fld_timestamp", "fld_deletetime"}),
#"Removed Columns" = Table.RemoveColumns(#"Expanded Json",{"Json URL"}),
#"Changed Type" = Table.TransformColumnTypes(#"Removed Columns",{{"fld_date_raised", type datetime}, {"fld_target_date", type datetime}, {"fld_date_closed", type datetime}, {"fld_timestamp", type datetime}, {"fld_deletetime", type datetime}}),
#"Changed Type1" = Table.TransformColumnTypes(#"Changed Type",{{"fld_date_raised", type date}, {"fld_target_date", type date}, {"fld_date_closed", type date}, {"fld_deletetime", type date}})
in
#"Changed Type1"

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@dmbd1904 - Setting a scheduled refresh on a Dynamic Data Source in Power BI | by dataninja | DataDrivenInvestor

 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

7 REPLIES 7
v-yuaj-msft
Community Support
Community Support

Hi @dmbd1904 ,

 

Please refer to this link to check if there's a warning called "Some data sources may not be listed because of hand-authored queries".

Data refresh in Power BI - Power BI | Microsoft Docs

 

Hope that's what you were looking for.

Best Regards,

Yuna

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Greg_Deckler
Super User
Super User

@dmbd1904 - Setting a scheduled refresh on a Dynamic Data Source in Power BI | by dataninja | DataDrivenInvestor

 


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Hi,

 

Appreciate If can you please tell us how the Dynamic Query issue is resolved?

 

Following link, doesn't work.
https://medium.datadriveninvestor.com/setting-a-scheduled-refresh-on-a-dynamic-data-source-in-power-...

hI @Greg_Deckler  thanks for the response. I'm still struggling with this one, how would I apply it to my case? Any further help would be greatly appreciated.  A sample URL for the Web contents is below

 

https://server2.domain.com/emperor_global3/report_adapter.php?wod=Gi5q4OFzQjBmtFo14maC5YxLwRXkXMln5q...

Managed to get it working,

Hi @dmbd1904 , I am getting the same issue. In Power BI desktop, I am connecting various sources and they work, I could publish my report. I used a DirectQury to a Power BI Datasets and now when I publish, I get the same messages and my changes are not applied. I am the publisher and Admin on one but and Admin on the other two, not the publisher.

 

RenePro_0-1674227781087.png

Going to the service, I see

RenePro_1-1674227826238.png

Woiuld appreciate it if anyone could let me know how they resolved this issue

Anonymous
Not applicable

Do you mind telling us how?

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.