Skip to main content

Power BI

Needs Votes

Measure Dependency View (similar to the Query Dependency View)

Vote (984) 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 (42)
Avi Singh's profile image Profile Picture

Arturs 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

Eugene Niemand 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

Anthony Newell 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

Elaine ELaine 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

Gerhard Brueckl 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

Avi Singh's profile image Profile Picture

Brahim Chabane on 05 Jul 2020 22:48:55

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

It looks great.

Avi Singh's profile image Profile Picture

Bryan Plantes on 05 Jul 2020 22:45:00

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

An addition to this idea is not only to view the dependency tree for the calculations, but also to view the visualizations dependent upon a measure. This would be extremely helpful for testing if a calculation changes and you need to regression test all the visuals within a workbook which contain those measures. This would also be helpful in getting rid of measures that are not used in your workbook

This could work similar to the "View Dependencies" right click menu selection in SQL Management Studio where you can see the tables, view, triggers, functions, and stored procs that are dependent upon the object or all of the tables, view, triggers, functions, and stored procs your object is dependent on.

Avi Singh's profile image Profile Picture

Jacky on 05 Jul 2020 22:41:14

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

Hi Hugo,
It looks great.
Can you share the source for the recursive function ?

Avi Singh's profile image Profile Picture

Mimoune Djouallah on 05 Jul 2020 22:39:18

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

there is a third party software that support that

https://github.com/otykier/TabularEditor/releases/tag/2.2

Avi Singh's profile image Profile Picture

Hugo Vanier on 05 Jul 2020 22:38:23

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

I did a recursive function for build a dependency tree for each measure. Look at the result:
https://app.powerbi.com/view?r=eyJrIjoiYmM4NDlhMGEtNGEzYS00ZTBlLTk2MjAtMmJiMDlmMTE3NjE0IiwidCI6ImFlYWQ3ZWE5LTlhMGItNDNkYS1iMzgzLWY2M2RkMjU4MDU1NCIsImMiOjN9