Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
CloudMonkey
Post Prodigy
Post Prodigy

How to check which fields and measures are dependant on a table?

Hello,

 

I suspect one of my tables in my pbix file is obsolete and not used in any required fields or mesaures. Please can you tell me how to check which fields and measures are dependant on the table before I delete it?

 

Many thanks,

 

CM

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I think you can do this using "DAX Studio". It can be downloaded here..

 

https://daxstudio.org/ 

Or

https://www.sqlbi.com/tools/dax-studio/ 

 

Once you download and install it, do the following in DAX Studio. Your power bi pbix file should be kept open in Power BI Desktop before opening DAX Studio.

 

Step 1:

After opening the pbix file in Power BI Desktop, Go to File->New in DAX Studio.

 

Step 2:

A "Connect" dialog will appear. Select "PBI / SSDT Model" radio button and select the pbix file name from the drop down list. It will show all the pbix file that are currently open. 

 

Step 3: Click "Connect" button.

 

Step 4:

Once you connect all the tables and measures in your data model from the pbix file will be listed on the left side.

 

Step 5:

Right-Click the table name that you want to check for dependencies and select the "Show Objects That Reference Table" option from the context menu that appear.

 

Step 6:
Step 5 will create a query and when you click run from the ribbon, it will list all the dependent tables, relationships, measures etc... that dependents on the selected table in "Query Result" tab.

 

Though it looks complicated, it won't even take 2-3 minutes to do this. 

 

PS:

@marcorusso 

@AlbertoFerrari 

I hope my suggestion is correct. Can you confirm?

 

 

 

 

 

View solution in original post

3 REPLIES 3
V-lianl-msft
Community Support
Community Support

Hi @CloudMonkey ,

 

Add a little bit,https://ssbi-blog.de/blog/technical-topics-english/how-to-identify-measures-not-used-in-your-pbix-fi... 

https://www.sqlbi.com/articles/capturing-power-bi-queries-using-dax-studio/ 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

I think you can do this using "DAX Studio". It can be downloaded here..

 

https://daxstudio.org/ 

Or

https://www.sqlbi.com/tools/dax-studio/ 

 

Once you download and install it, do the following in DAX Studio. Your power bi pbix file should be kept open in Power BI Desktop before opening DAX Studio.

 

Step 1:

After opening the pbix file in Power BI Desktop, Go to File->New in DAX Studio.

 

Step 2:

A "Connect" dialog will appear. Select "PBI / SSDT Model" radio button and select the pbix file name from the drop down list. It will show all the pbix file that are currently open. 

 

Step 3: Click "Connect" button.

 

Step 4:

Once you connect all the tables and measures in your data model from the pbix file will be listed on the left side.

 

Step 5:

Right-Click the table name that you want to check for dependencies and select the "Show Objects That Reference Table" option from the context menu that appear.

 

Step 6:
Step 5 will create a query and when you click run from the ribbon, it will list all the dependent tables, relationships, measures etc... that dependents on the selected table in "Query Result" tab.

 

Though it looks complicated, it won't even take 2-3 minutes to do this. 

 

PS:

@marcorusso 

@AlbertoFerrari 

I hope my suggestion is correct. Can you confirm?

 

 

 

 

 

Didn't realize I could do this in Dax Studio. Not a suprise of course as I love that tool. Thanks! Really helped my efforts.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.