Forum Discussion

speedramps's avatar
speedramps
Super User
6 years ago
Solved

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   ...
  • v-juanli-msft's avatar
    6 years ago

    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}

     

    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.