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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
jeongkim
Post Prodigy
Post Prodigy

Find which dax columns are referring specific column?

Hi,

Is there any way if I can find which columns in other(or same) data tables are referring this column? 

I can find manually clicking all other columns seeing dax but wondering any list shown in function. 

 

 

jeongkim_0-1750299669582.png

 

2 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @jeongkim 

 

Your DAX does not return a scalar value which is expected of a calculated column. I can't see your formula but these are sample formulas that will return such an error as they do not return a single value

=TableName

=FILTER(TableName, TableName[Column1] = "A)

to resolve this, the column for each row must return a single value

= COUNTROWS( TableName ) --returns the row count

= MAXX ( FILTER(TableName, TableName[Column1] = "A),TableName[Column1] ) --returns the max value of Column1 after Column1 is filtered down to A

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

OwenAuger
Super User
Super User

Hi @jeongkim 

Within Power BI Desktop, in DAX Query view (or tools such as DAX Studio) you can use the DAX function INFO.CALCDEPENDENCY to query dependencies in the model, 

For example, this query returns a table containing all dependencies in the model.

EVALUATE
INFO.CALCDEPENDENCY ( )

This more specific query would return calculated columns that depend on the column YourTable[NDPd/Non NDPd]:

EVALUATE
FILTER (
    INFO.CALCDEPENDENCY ( "OBJECT_TYPE", "CALC_COLUMN" ),
    "REFERENCED_TABLE" = "YourTable" -- change to correct table name
        && "REFERENCED_OBJECT" = "NDPd/Non NDPd"
)

These return immediate dependencies, but I believe some clever folks have written more sophisticated queries to recurse through dependencies. If I can find an example I'll post here 🙂

 

You can also use Tabular Editor to examine dependencies for any object.


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

View solution in original post

3 REPLIES 3
OwenAuger
Super User
Super User

Hi @jeongkim 

Within Power BI Desktop, in DAX Query view (or tools such as DAX Studio) you can use the DAX function INFO.CALCDEPENDENCY to query dependencies in the model, 

For example, this query returns a table containing all dependencies in the model.

EVALUATE
INFO.CALCDEPENDENCY ( )

This more specific query would return calculated columns that depend on the column YourTable[NDPd/Non NDPd]:

EVALUATE
FILTER (
    INFO.CALCDEPENDENCY ( "OBJECT_TYPE", "CALC_COLUMN" ),
    "REFERENCED_TABLE" = "YourTable" -- change to correct table name
        && "REFERENCED_OBJECT" = "NDPd/Non NDPd"
)

These return immediate dependencies, but I believe some clever folks have written more sophisticated queries to recurse through dependencies. If I can find an example I'll post here 🙂

 

You can also use Tabular Editor to examine dependencies for any object.


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Thanks for sharing the INFO Function use on Query Dependencies

danextian
Super User
Super User

Hi @jeongkim 

 

Your DAX does not return a scalar value which is expected of a calculated column. I can't see your formula but these are sample formulas that will return such an error as they do not return a single value

=TableName

=FILTER(TableName, TableName[Column1] = "A)

to resolve this, the column for each row must return a single value

= COUNTROWS( TableName ) --returns the row count

= MAXX ( FILTER(TableName, TableName[Column1] = "A),TableName[Column1] ) --returns the max value of Column1 after Column1 is filtered down to A

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors