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

54ff2e69 6a1f-46e5-9e2c-ba2693639198 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

50bdcdb9 0af1-49a6-9954-3c0ec3a1eec9 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

07595cb9 356f-4caa-a832-71bd1de8fc4a 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

a1589274 5eaa-47f4-8cc6-00d03ab88ae5 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

15824df7 cf1e-4c8a-8315-c5430ac8d7fa 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

Avi Singh's profile image Profile Picture

8cbec627 36de-4e50-9553-dd72846d0414 on 05 Jul 2020 22:35:10

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

This ia great idea when you develop a model!!! But there is another one, when you explore a model. Create Calculated Fields groups in the fields tab. When the number on calculated metrics increases it is almos impossible to remember the measures you already have. The filter helps but is not enough. I would like to see something were I can group all metrics. Like this

Sales
Actuals
Signed $
Current Month Signed $
MTD Signed $
QTD Signed $

Processed $
Proposed $

Budget
Variance to Budget (VTB)
Forecast
Variance to Forecast (VTF)
Sales Forecasting Reliability
Forecast Accuracy %
Forecast Predictability%
Projected Sales
Predicted Sales

In my model, just to describe the different status, steps and time calculations linked with one Company "Sales", I have developed more than 250 different calculated metrics. It is tough to see from dependency perspective, and from presentation perspective

Avi Singh's profile image Profile Picture

a3309361 99be-ea11-a812-000d3a8ddfb2 on 05 Jul 2020 22:35:05

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

https://ideas.powerbi.com/forums/265200-power-bi-ideas/suggestions/17237591-between-option-on-dates-is-not-working-on-timeline - vote this

Avi Singh's profile image Profile Picture

778877d4 a4cd-44f2-9be0-1dafd6f7368c on 05 Jul 2020 22:34:22

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

play now
http://www.head-soccer.com/

Avi Singh's profile image Profile Picture

3909423b 55e2-4baf-9039-ac596f01a9e1 on 05 Jul 2020 22:34:17

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

Yes, Yes, and Yes. Necessity when you have a lot of measures in your model.

Avi Singh's profile image Profile Picture

a9c38bb7 decf-49b7-a693-4826b0645c9c on 05 Jul 2020 22:34:00

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

Now that I have 16 measures I consider this necessary. But I can control it yet.