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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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!:
The Definitive Guide to Power Query (M)

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

July Newsletter

Fabric Community Update - July 2024

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