Forum Discussion

MarkHoughton's avatar
MarkHoughton
Regular Visitor
9 years ago

Direct Query SQL table fails to import even though it previews correctly

Hi, I am new to PowerBI and just finding my way around. I have imported using direct query a number of tables and pull through financial information ok. However, I am attempting to build a department heirarchy and failing. In my SQL database I have 2 tables, one with the dept id and dept description, the other table has two columns, one id is the matched dept id, the other id is its parent id. I have a sql script which pulls the names in so that i have 4 columns, Parent Name, Parent Id, ChildDept Id, ChildDept Name. All well and good and it displays ok in the query editor when attempting to import.

 

 

However, it will not allow me to 'accept' the query. I get this error.

I don't know why if it previews the source ok that it fails to 'accept' it.

What am i doing wrong ?

 

Thanks

Mark

4 Replies