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
speedramps
Super User
Super User

Is there a  DAX command for retrieving a column name?

Is there a  DAX command for retrieving a column name.

Preferably the original query column name and not the renamed one.

The reason why is …..

 

I have a data model with 100’s of fields like

 

DimProduct

 Unit Price

 Weight

 

I also have a data dictionary on a sql server table with a list of each column name with description.

I want to be able to hover on a visual graph segment and then for Power BI to retrieve the original column name and do a lookup to get and display the data dictionary description.

 

1 ACCEPTED SOLUTION
v-juanli-msft
Community Support
Community Support

Hi @speedramps 

Currently, Dax doesn't support to get columns' names, you could use Power Query to get columns names.

Sample

Custom=Table.ColumnNames(#"previousSteps"){0}

Capture12.JPG

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
asimk
New Member

NAMEOF is the DAX function you're looking for.

v-juanli-msft
Community Support
Community Support

Hi @speedramps 

Currently, Dax doesn't support to get columns' names, you could use Power Query to get columns names.

Sample

Custom=Table.ColumnNames(#"previousSteps"){0}

Capture12.JPG

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.