Skip to main content

Power BI

Needs Votes

Measure Dependency View (similar to the Query Dependency View)

Vote (781) Share
Avi Singh's profile image

Avi Singh on 24 Oct 2016 07:27:27

The newly introduced Query Dependency view is phenomenal but what we really need is a Measure Dependency view. Here is what it might look like: http://ppvt.pro/2eXKndh
And a video detailing this idea: https://youtu.be/sYjBB_Ef66M

In one of my production models I have 60 Queries, but I have 200+ measures! I believe that is typical; usually I build Queries and Measures as lego blocks, combining simpler ones into more complex ones needed in the end. In fact I needed it so badle that I attempted to build a Measure Dependency view using NodeXL. While that works, it's a lot of heavy lifting. How cool would it be, to just click a button on Power BI Desktop and see all your measures in a Dependency tree!

Comments (37)
Avi Singh's profile image Profile Picture

10df9da6 c24b-492d-8d1b-7d7ac930e4b4 on 06 Jul 2020 00:13:56

RE: Measure Dependency View (similar to the Query Dependency View)

Also being able to ctrl-click [Measure name] in the editor to navigate to this measure would be great!

Avi Singh's profile image Profile Picture

a2722f3f 6dc7-4f54-a175-ff668f3ec1f5 on 06 Jul 2020 00:11:10

RE: Measure Dependency View (similar to the Query Dependency View)

A dependency tree until you reach fields.
And also for calculed columns against other mesures or fields

Avi Singh's profile image Profile Picture

f8f1e18e 4054-42a4-b57b-ac4ba5938a05 on 05 Jul 2020 23:56:33

RE: Measure Dependency View (similar to the Query Dependency View)

With XMLA endpoint on Power BI datasets (Premium), you should be able to get the dependencies using a query like this:

SELECT * FROM SYSTEMRESTRICTSCHEMA ($SYSTEM.DISCOVER_CALC_DEPENDENCY, [KIND] = 'NAMED_DEPENDENCY')

More info here: https://blogs.msdn.microsoft.com/analysisservices/2017/07/17/whats-new-in-sql-server-2017-rc1-for-analysis-services/

Avi Singh's profile image Profile Picture

7c4c8544 0f6e-4f5b-8dec-025f8be04038 on 05 Jul 2020 23:55:58

RE: Measure Dependency View (similar to the Query Dependency View)

Avi, great idea. I posted the following before I saw that it was a very similar suggestion...

Measures that reference and depend on other measures can be difficult to trace and debug. To make this easier, provide the option in the field list to show the measures that are referenced by other measures. This should be optional and performed individually for each measure to avoid unnecessary performance overhead. Here's a conceptual mockup:measure dependency (on my blog here: sqlserverbi.blog/2019/08/06/power-bi-product-suggestion-show-measure-dependencies/ )

Avi Singh's profile image Profile Picture

f66b7e42 1c77-4dfe-bcc5-c8ff88306631 on 05 Jul 2020 23:27:46

RE: Measure Dependency View (similar to the Query Dependency View)

Definitely need this on Measures.

Avi Singh's profile image Profile Picture

f7429668 a7d7-490d-a390-65aae7df2178 on 05 Jul 2020 23:26:36

RE: Measure Dependency View (similar to the Query Dependency View)

This kind of functionality is crucial for building complex reports!

Avi Singh's profile image Profile Picture

4e71aaab e787-473e-89bf-f5084f9f9037 on 05 Jul 2020 23:23:20

RE: Measure Dependency View (similar to the Query Dependency View)

More than a year later and this is still the best tool out there https://github.com/otykier/TabularEditor

Avi Singh's profile image Profile Picture

d51bfa42 be6b-43b2-b25e-d0dac23b5697 on 05 Jul 2020 23:13:25

RE: Measure Dependency View (similar to the Query Dependency View)

Great idea, where is it?!

Avi Singh's profile image Profile Picture

583e24ff 9629-4977-b5dc-ec7f5170a8cd on 05 Jul 2020 23:09:37

RE: Measure Dependency View (similar to the Query Dependency View)

Impact Analysis, dependency, data lineage - all about tranparency into the data, understanding and trusting the data used in analytics. Enhances users' ability to create robust, meaningful analytics and drive business conversations and decisions.

Avi Singh's profile image Profile Picture

de626f50 3a13-4f23-87fd-22512b97cefa on 05 Jul 2020 22:55:52

RE: Measure Dependency View (similar to the Query Dependency View)

Once we have the dependencies, they should also be used when it comes to updating calculated tables/columns after changing e.g. a measure.
Changing a measure should not trigger a recalc of a calculated table where that measure was not used at all // has no dependency to