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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
GemPOWER
Frequent Visitor

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

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

Hi  @GemPOWER ,

 

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:

3.png

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!

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi  @GemPOWER ,

 

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:

3.png

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!

amitchandak
Super User
Super User

@GemPOWER , Not sure this. But analyze in excel can help to analyze data in excel -https://docs.microsoft.com/en-us/power-bi/collaborate-share/service-analyze-in-excel

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.