简体   繁体   English

从Power BI中的SQL数据源中选择特定的表

[英]Select specific tables from an SQL data source in Power BI

I'm working on setting up PowerBI desktop for a client where they'll import 8 specific tables from a database to work on in Power BI. 我正在为客户端设置PowerBI桌面,他们将从数据库中导入8个特定表以在Power BI中工作。

However, when I go to import the tables, every table in the database is shown and the specific tables must be selected. 但是,当我导入表时,将显示数据库中的每个表,并且必须选择特定的表。 There are hundreds of tables imported, and a lot of scrolling to select the correct tables, which leaves room for confusion and error for the clients. 导入了数百张表,并进行了大量滚动操作以选择正确的表,这为客户留下了混乱和错误的余地。

The client accesses the database using windows authentication, and I can't change their settings on SSMS as that would affect how they access data on other applications. 客户端使用Windows身份验证访问数据库,我无法更改其在SSMS上的设置,因为这会影响他们在其他应用程序上访问数据的方式。

I was wondering if there was an simpler way to save a query in Power BI the users can quickly select when setting up a new report. 我想知道是否存在一种更简单的方法来将查询保存在Power BI中,以便用户在设置新报告时可以快速选择。

You could always use raw sql instead: 您可以始终使用原始sql代替:

在此处输入图片说明

Or select "empty query" and specify it like so: 或选择“空查询”并按如下所示进行指定:

在此处输入图片说明

Edit: not sure if this is of any help but there's also a filter field: 编辑:不确定这是否有帮助,但是还有一个过滤器字段:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM