Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 61926

WARNING: "GetData = (path) => let" in a query prevents upload to app.powerbi.com and embedded

$
0
0

Hello all.

 

In my post yesterday, I found that uploading to app.powerbi and embedded failed for all models using GetData in a query like the code below.

 

Removing GetData from one model has confirmed this issue...that model now uploads fine to both sites.  

 

This can be a very large undertaking depending upon whether measures reside in your data table, the number of files being combined and so on.  So beware.

   Source = Csv.Document(File.Contents(path),[Delimiter=",", Encoding=1252]),
    #"Promoted Headers" = Table.PromoteHeaders(Source),
    #"Renamed Columns" = Table.RenameColumns(#"Promoted Headers",{{"Row Labels", "ReptRecNo"}}),
    #"Changed Type" = Table.TransformColumnTypes(#"Renamed Columns",{{"ReptRecNo", Int64.Type}, {"Variable_Value", type number}}),
    #"Removed Blank Rows" = Table.SelectRows(#"Changed Type", each not List.IsEmpty(List.RemoveMatchingItems(Record.FieldValues(_), {"", null})))
in
    #"Removed Blank Rows",
	Current = GetData("C:\Users\trday\Dropbox\FTRatings\FTRatingsData-Models\Stage2-DataLoad\MeasuresData-Current.csv"),
	Prior1 = GetData("C:\Users\trday\Dropbox\FTRatings\FTRatingsData-Models\Stage2-DataLoad\MeasuresData-Prior-1.csv"),
        NoPctileCur= GetData("C:\Users\trday\Dropbox\FTRatings\FTRatingsData-Models\Stage2-DataLoad\MeasuresData-NoPercentile-Current.csv"),
        NoPctilePrior= GetData("C:\Users\trday\Dropbox\FTRatings\FTRatingsData-Models\Stage2-DataLoad\MeasuresData-NoPercentile-Prior-1.csv"),

	
	Combine = Table.Combine({ Current, Prior1, NoPctileCur, NoPctilePrior})
in  
    Combine

Viewing all articles
Browse latest Browse all 61926

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>