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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.