cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ovonel
Helper III
Helper III

How to find all tables used in .pbix?

I have a .pbix that consumes LIVE from an SSAS cube, that has 50 tables.

 

The .pbix has 7 pages and several visuals/KPIs per page...

 

I need to know all the tables used in the .pbix (my guess is only 8 out of the 50 tables from the SSAS cube are used).

 

Is there a way of doing this; other than clicking every visual and seeing the "ticks" on the right?

 

 

1 ACCEPTED SOLUTION
Ailsa-msft
Community Support
Community Support

Hi @ovonel ,

Use SQL Server Profiler can track the tables you used in power bi. But there is a premise that your SSAS database can be accessed through SQL Server .

(1)Refresh in power bi desktop ,the query will be sent to SSAS, so the SQL Server Profiler Will be record the query .(I have two visuals in the desktop)

Ailsa-msft_0-1619141274145.png

(2)Select all events related to Query in the Events Selection and run .Like this

Ailsa-msft_1-1619141274154.png

(3)Then you will get the details of the query, it will contain the name of the table related to the query .

Ailsa-msft_2-1619141274159.png

  

Best Regards

Community Support Team _ Ailsa Tao

 

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

5 REPLIES 5
Ailsa-msft
Community Support
Community Support

Hi @ovonel ,

Use SQL Server Profiler can track the tables you used in power bi. But there is a premise that your SSAS database can be accessed through SQL Server .

(1)Refresh in power bi desktop ,the query will be sent to SSAS, so the SQL Server Profiler Will be record the query .(I have two visuals in the desktop)

Ailsa-msft_0-1619141274145.png

(2)Select all events related to Query in the Events Selection and run .Like this

Ailsa-msft_1-1619141274154.png

(3)Then you will get the details of the query, it will contain the name of the table related to the query .

Ailsa-msft_2-1619141274159.png

  

Best Regards

Community Support Team _ Ailsa Tao

 

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

othy_bi
Helper V
Helper V

Hi  @ovonel 

For this you would need to install DAXSTUDIO, once intalled try following these steps:

  1. Launch your powerbi report
  2. Launch DAXSTUDIO and select your model
  3. Run this query 
    SELECT * FROM $System.DBSCHEMA_TABLES WHERE TABLE_TYPE='SYSTEM TABLE'

 

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated  🙂

Hi @ovonel 

If it worked please don't forget to accept it as a solution 👍

 

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated  

Once I open the model, the query returns all the 50 tables in the model and not just the ones used in the Pbix...

Actually you will have to deep dive in that resulted table, here you will find the steps you must follow in order to identify the used/referenced tables in your report.

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated  

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors