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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
Maximous89
Helper I
Helper I

Sharepoint Data with Oracle Data

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.

 

 

 

 

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

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.

View solution in original post

3 REPLIES 3
v-saisrao-msft
Community Support
Community Support

HI @Maximous89,

Checking in to see if your issue has been resolved. let us know if you still need any assistance.

 

Thank you.

v-saisrao-msft
Community Support
Community Support

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.

lbendlin
Super User
Super User

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.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Kudoed Authors