cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
akhil5656
Frequent Visitor

How to connect two data sources with direct query

I am creating a dashboard to monitor SQL Agent jobs on Power BI Dashboard for different servers in my network. I have connected one data source with the direct query and when I am trying to connect the second data source with the direct query it popping up a caution to change into import mode. my question was How to connect the two more databases with the direct query?

1 ACCEPTED SOLUTION

Accepted Solutions
BILASolution Solution Specialist
Solution Specialist

Re: How to connect two data sources with direct query

4 REPLIES 4
BILASolution Solution Specialist
Solution Specialist

Re: How to connect two data sources with direct query

akhil5656
Frequent Visitor

Re: How to connect two data sources with direct query

Is there any other way to connect two or more database live in Power BI Desktop?

BILASolution Solution Specialist
Solution Specialist

Re: How to connect two data sources with direct query

@akhil5656

 

I think an alternative to solve your question, but you need Power BI Services. You can create differents reports per each data source by direct query in power BI desktop, then publish them in power bi service. Finally create a dashboard that shows a mix of report parts.

Highlighted
Kartic21
Frequent Visitor

Re: How to connect two data sources with direct query

It seems there is solution for the same.

 

Mention the same "Database" name in both the SQL Server DB popup and

 

In advanced query(where we are refering to another DB ) refer the table in the query with DB name 

 

eg select * from Databasename.dbo.tablename

 

This worked for me while direct query was intact !!

Helpful resources

Announcements
Announcing the New Spanish Forum

Announcing the New Spanish Forum

Do you need help in Spanish? Check out our new Spanish community section.

April 2020 Community Highlights

April 2020 Community Highlights

Info on our Super Users, MBAS content and badges, and updates to our support articles. - Read the full Community Highlights.

MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

Top Solution Authors
Top Kudoed Authors