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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Evogelpohl
Helper V
Helper V

Power Query Equivalent to "Starts with...Connect by Prior" in Oracle?

I was given an Oracle DB query that uses the hierarchical query structure, "starts with.. and connect by prior".

 

I confess I don't really understand what this is doing - not a DBA - but i get the basics (e.g. Manager/Emp.)  However, I'd like to reproduce this query using PowerBI Designer / Power Query.  (Yes, I understand I could use my friends SQL in Power Query directly, but I have other things I'd like to get as well).

 

Does Power Query have an equivalent function/feature to this?  If so, can someone point me to a good article?

 

Thanks

Eric.

1 ACCEPTED SOLUTION

Power Query doesn't currently understand this kind of structure, and I don't recall having gotten any requests for it before. As always, feel free to suggest it at the UserVoice so we can get a gauge of the user demand.

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

You can choose to connect to the Oracle DB and you can just copy and paste the query into the "SQL statement (optional)" field just below the Server field.



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Yup, aware of that.  And it works.

 

However, I'd like to learn the Power Query apporach.  I want to make some significant changes to the SQL outside of the /starts with/ and /connect by prior/ portions of the code.

 

So, what if I didn't have the SQL to begin with?  Does Power Query know how to deal with this structure?  Would i use PATH in PowerPivot?

 

-Eric.

Power Query doesn't currently understand this kind of structure, and I don't recall having gotten any requests for it before. As always, feel free to suggest it at the UserVoice so we can get a gauge of the user demand.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.