Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

Extract variables in an excel

Hello, I would like to extract in an xls file all calculated columns from a pbi table to save them. I have a table created that is SALES with 89 calculated columns. I just want to extract the formula...
  • v-kelly-msft's avatar
    5 years ago

    Hi  Anonymous ,

     

    Download DAX Studio

    run the following against your PBI Desktop (one at a time)

     

    select * from $SYSTEM.TMSCHEMA_MEASURES
    select * from $SYSTEM.TMSCHEMA_COLUMNS where [Type]  = 2;

    And you will see all the formula created in the table:

    You could select the formula one by one and copy them out.

     

    Best Regards,
    Kelly

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