cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerBIlearner Regular Visitor
Regular Visitor

Custom SQL instead of table or view

Hello,


Can you tell me how do I write the custom sql/ derived table to join to existing tables from the databases? I would like to be able to use derived table. The only options I see is I can use tables/views from the database. Thank you in advance.

 

@ankitpatira

@Greg_Deckler

@BhaveshPatel

@Seth_C_Bauer

@v-haibl-msft

@ImkeF

@Baskar

@Sean

 

Shruthi

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Custom SQL instead of table or view

@PowerBIlearner When you connect to the SQL Server you can expand the "Advanced options" and input a SQL query to pull in the data that you want.


Near SE WI? Join our PUG Milwaukee Brew City PUG

View solution in original post

Moderator v-qiuyu-msft
Moderator

Re: Custom SQL instead of table or view

Hi @PowerBIlearner,

 

When we connect to SQL Server data source, we can use derived tables in the T-sql query, you can refer to the sample below:

 

q3.PNGq4.PNGq5.PNG

 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3

Re: Custom SQL instead of table or view

@PowerBIlearner When you connect to the SQL Server you can expand the "Advanced options" and input a SQL query to pull in the data that you want.


Near SE WI? Join our PUG Milwaukee Brew City PUG

View solution in original post

Moderator v-qiuyu-msft
Moderator

Re: Custom SQL instead of table or view

Hi @PowerBIlearner,

 

When we connect to SQL Server data source, we can use derived tables in the T-sql query, you can refer to the sample below:

 

q3.PNGq4.PNGq5.PNG

 

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

smadappa Visitor
Visitor

Re: Custom SQL instead of table or view

Thank you, it helped !

Helpful resources

Announcements
New Kudos Received Badges Coming

New Kudos Received Badges Coming

Kudos to you if you earned one of these! Check your inbox for a notification.

Microsoft Implementation for Communities Wins Award

Microsoft Implementation for Communities Wins Award

Learn about the award-winning innovation that was implemented across Microsoft’s Business Applications Communities.

Power Platform World Tour

Power Platform World Tour

Find out where you can attend!

Top Kudoed Authors (Last 30 Days)
Users online (1,067)