Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi folks!
I have the query below which is trowing me the following error:
"(step 'SourceFinal5G') references other queries or steps, so it may not directly access a data source. Please rebuild this data combination."
The issue is related with the line:
#"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File (4)", Table.ColumnNames(#"Transform File (4)"(#"Sample File (4)")))
By some reason it is giving a conflict when accessing the "Transform File (4)" column which contains the link to tables which contain data.
Any idea on how I can overcome this issue? I have already adjusted the Data Source Privacy Levels to none.
More details on the Query below:
let
// Custom function to check if folder is empty:
IsFolderEmpty = (folderPath as text) as logical =>
// This function receives a parameter named folderPath of type text.
// As logical is the return type of the function.
// The function will return a logical value (true or false) indicating whether the folder is empty or not.
// => This arrow indicates the beginning of the function body.
let
SourceF = Folder.Files(folderPath), // Use folderPath parameter here
#"FilesCount" = Table.RowCount(SourceF),
#"Verdade" = if #"FilesCount" > 0 then true else false
in
#"Verdade",
// Define the folder path:
NRReportFolder5g = #"NRReportFolder",
// Check if folder is empty:
FolderIsEmpty = IsFolderEmpty(NRReportFolder5g),
// Load data if folder is not empty
SourceFinal5G = if FolderIsEmpty = 0 then null else
(
let
Source1 = Folder.Files(NRReportFolder5g),
#"Filtered Hidden Files1" = Table.SelectRows(Source1, each [Attributes]?[Hidden]? <> true),
#"Invoke Custom Function1" = Table.AddColumn(#"Filtered Hidden Files1", "Transform File (4)", each #"Transform File (4)"([Content])),
#"Renamed Columns1" = Table.RenameColumns(#"Invoke Custom Function1", {"Name", "Source.Name"}),
#"Removed Other Columns1" = Table.SelectColumns(#"Renamed Columns1", {"Source.Name", "Transform File (4)"}),
#"Expanded Table Column1" = Table.ExpandTableColumn(#"Removed Other Columns1", "Transform File (4)", Table.ColumnNames(#"Transform File (4)"(#"Sample File (4)")))
in
Source1
)
in
SourceFinal5G
Inline the
#"Transform File (4)"
function into the current partition like you did with the IsFolderEmpty function
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
8 | |
8 | |
7 |
User | Count |
---|---|
15 | |
13 | |
9 | |
7 | |
6 |