Skip to main content

Power BI

Needs Votes

List of used fields in visuals (and in calculated fields and measures)

Vote (247) Share
Eddy De Maerschalck's profile image

Eddy De Maerschalck on 28 Feb 2017 15:58:03

How can I get a documentation which mentions which field is used on a visual? or in a calculation of a column or measure?
With DAX studio we can make a list of calculated fields and measures. And with a little programming we can see which field as source for another calculated field or measure.
I know that by clicking on a visual the involved dataset will be highlighted into yellow. If I expand it, I see data fields used (which is selected) in this visual.To do this manually I'll need to click on each visual, manually make a note of every field used, cliick on the next visual, manually make a note of fields used...>> iterate. That'll take ages.
Main purpose is to eliminate all unneccessary fields and ... documentation!

Comments (17)
Eddy De Maerschalck's profile image Profile Picture

49c93862 edd7-ea11-a813-000d3a579c38 on 06 Aug 2020 14:07:38

RE: List of used fields in visuals (and in calculated fields and measures)

I know documenting your reports is probably low on the list of to do items, but for company wide use, it is critical that users understand what they are selecting when we are asking them to embrace Power BI. I'm documenting over 80 measures used in dozens of visuals and doing this manually is the pits. Please, please create some query that pulls this info into one place. It doesn't seem like it's an impossible task. Thank you.

Eddy De Maerschalck's profile image Profile Picture

433fe136 3877-464e-972f-2cdc481b19fc on 06 Jul 2020 00:08:28

RE: List of used fields in visuals (and in calculated fields and measures)

Hi All,

I had the problem a few times and created a simple web site to analyze a PBIX file and find unused fields

https://analyzepbix.azureedge.net/

Eddy De Maerschalck's profile image Profile Picture

b4cbad3d c908-4025-9012-4ef1d8b17bad on 06 Jul 2020 00:06:38

RE: List of used fields in visuals (and in calculated fields and measures)

Just as a side thought on this; we use an analytics cube so by it's nature we can have custom measures but not custom columns when working in live. You can have calculated columns by building a query that just custom selects the fields you want, but realistically you're building visuals up on the fly and don't know at the outset what fields you might need. Being able to have a either highlighting or an embedded tool to tell you which fields are being used on which pages and which visuals would make it quicker to make a decision what you pull through to your custom query when you get to the stage of wanting to manipulate the dataset with custom columns.

Eddy De Maerschalck's profile image Profile Picture

411a60ba 5540-46c4-9efc-ef56c25ae52b on 05 Jul 2020 23:55:11

RE: List of used fields in visuals (and in calculated fields and measures)

This would be a nice built in feature, for sure. There is another idea about a complete Measure management interface. I'd love. love to see that.

In the interim.. for anyone needing this DAX Studio can do this if you spit it out to excel.
If you launch DAX studio and run the following MDX query:

SELECT OBJECT_TYPE, [TABLE], OBJECT, EXPRESSION, REFERENCED_TABLE, REFERENCED_OBJECT
From $SYSTEM.DISCOVER_CALC_DEPENDENCY
WHERE OBJECT_TYPE = 'MEASURE' OR OBJECT_TYPE = 'CALC_COLUMN'
ORDER BY [OBJECT] ASC

This will give you all Measures and calculations as well as their dependent columns

Eddy De Maerschalck's profile image Profile Picture

20193663 8918-4ef8-917f-2f5e50cd0a55 on 05 Jul 2020 23:42:35

RE: List of used fields in visuals (and in calculated fields and measures)

This has turned out to be a great tool for inventorying which fields are used in any report: http://radacad.com/power-bi-helper

It does not examine which fields are used in measures or calculated columns, but DAX Studio can do that for you: https://daxstudio.org/

Eddy De Maerschalck's profile image Profile Picture

f8a236e4 fcdb-4a17-a172-b303aa0217a0 on 05 Jul 2020 23:34:27

RE: List of used fields in visuals (and in calculated fields and measures)

This would be very handy. Some of our files are enormous, and can be drastically reduced in size by removing unused columns. This is currently very time consuming.

Eddy De Maerschalck's profile image Profile Picture

3ff28986 d36a-4cff-b890-4d734c0a761d on 05 Jul 2020 23:29:00

RE: List of used fields in visuals (and in calculated fields and measures)

Would love a right click "Where used List" showing any other measures or a list of the Visual names that the field/measure is used in

Eddy De Maerschalck's profile image Profile Picture

04fe7b85 48ba-442b-8389-c9fafcc01c1c on 05 Jul 2020 23:27:02

RE: List of used fields in visuals (and in calculated fields and measures)

agree, this is a very manual process as it stands right now. This would also help with new hires that need to be trained on reporting. Would give a good documentation of how the report is built.

Eddy De Maerschalck's profile image Profile Picture

d1be4022 6419-4f85-87cf-9d4a137fa0e5 on 05 Jul 2020 23:20:38

RE: List of used fields in visuals (and in calculated fields and measures)

Fortunately Reza Rad also thought this would be very useful. Check out http://radacad.com/power-bi-helper

Eddy De Maerschalck's profile image Profile Picture

SunilDutt Nidamarthi on 05 Jul 2020 23:19:14

RE: List of used fields in visuals (and in calculated fields and measures)

This is a very grand feature to be available in Power BI service/desktop. It helps to identify the unused attributes and leverages the Power BI model simplification.