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. How could you extract those calculated columns into an xls? Thank you

  • 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!

2 Replies

  • v-kelly-msft's avatar
    v-kelly-msft
    Icon for Community Support rankCommunity Support

    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!