Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hello power bi sharks,
i kinda have a complex situation here,
let me explain please...
i have a formula that fire sql statments:
( Sql as text) as table =>
let
Source = Value.NativeQuery(Oracle.Database(Target_Conn_str, [CommandTimeout = #duration(0,0,40,0), HierarchicalNavigation=true]),Sql)
in
Source then i have queris like this:
sharepoint_List = SQL_List,
sql = "
SELECT * FROM ABC."& Target_Category_MarketSet &" WHERE DATAMART IN (" & sharepoint_List & ")
"
,
Source = fnOracleNativeQuery(sql),
#"Merged Queries" = Table.NestedJoin(Source, {"SHORT_DESCR"}, MARKETSET_FILTER, {"SHORT_DESCR"}, "MARKETSET_FILTER", JoinKind.LeftOuter),
#"Expanded MARKETSET_FILTER" = Table.ExpandTableColumn(#"Merged Queries", "MARKETSET_FILTER", {"MARKETSET_FILTER"}, {"MARKETSET_FILTER"})
in
#"Expanded MARKETSET_FILTER"
Now we have tow sharepoint filer here the sharepoit_list and the table that i used it for join MARKETSET_FILTER that's as well a share point file,
now in desktop to make this work all i need to do to check in the privacy levels always ignore privacy level,
but on the service Ohhhhh.., it's very differenet story,
first i create the gateway conn with privacy level of none but still didn't work, so i found i must buffer my list and so i did,
still didn't work, then i read i must use a staging query of the buffered list, still didn't work,
i buffered even the buffer!
is there a way to make sharepoint file load first before oracle?!!!
that my SQL_List query and it's buffered from a another buffer :
let
Source = List.Buffer(Tables),
SQLList =
Text.Combine(
List.Transform(Source, each "'" & _ & "'"),
","
)
in
SQLList
Tables here as well is buffered in a seprate query that is buffered from source sharepoint file.
Solved! Go to Solution.
There are a few things going on here.
You are using Value.NativeQuery but without specifying your folding intent. That makes it ineffective.
You are specifying both a query and HierarchicalNavigation=True. That doesn't go together, and you should set the navigation to false
You are combining an on-premise data source with a cloud data source. This mandates that your cloud data source needs to be accessed via a gateway connection. Your gateway needs to be configured accordingly.
You chose to ignore privacy settings. That is not recommended. Better set both to Organizational.
As to what gets executed first - that is up to Power Query to decide. If you want to enforce things you may need to use Function.InvokeAfter() in a slightly quirky way.
HI @Maximous89,
Checking in to see if your issue has been resolved. let us know if you still need any assistance.
Thank you.
Hi @Maximous89,
Have you had a chance to review the solution we shared by @lbendlin? If the issue persists, feel free to reply so we can help further.
Thank you.
There are a few things going on here.
You are using Value.NativeQuery but without specifying your folding intent. That makes it ineffective.
You are specifying both a query and HierarchicalNavigation=True. That doesn't go together, and you should set the navigation to false
You are combining an on-premise data source with a cloud data source. This mandates that your cloud data source needs to be accessed via a gateway connection. Your gateway needs to be configured accordingly.
You chose to ignore privacy settings. That is not recommended. Better set both to Organizational.
As to what gets executed first - that is up to Power Query to decide. If you want to enforce things you may need to use Function.InvokeAfter() in a slightly quirky way.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 25 | |
| 11 | |
| 10 | |
| 6 | |
| 5 |