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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
yooakim
New Member

See DAX formula in existing measure (when original report has been deleted)?

I have been asked to help a client with an exsting report. In the report there is a measure for which they cannot see the underlyign DAX formula.

The issue (I think) is that the report is based on another report that was copied and that then later was deleted.

The report works fine in the Power BI Service, but we cannot save the file as a PBIX file.

Are there other ways for us to get to the actual DAX query? (wothout having the original Desktop file)

 

1 ACCEPTED SOLUTION
MAwwad
Solution Sage
Solution Sage

Yes, there are a few ways to retrieve the DAX formula for a measure in a Power BI report:

  1. Query Editor: If the data source is an Excel workbook, you can access the formula using the Query Editor in Power BI Desktop. Go to Home > Get Data > From File > From Excel and select the workbook. In the Query Editor, you can find the formula in the Applied Steps section.

  2. DirectQuery/Live Connection: If the report is using DirectQuery or Live Connection, you can retrieve the formula by connecting to the data source (e.g. SQL Server database) using SQL Server Management Studio or another tool. The DAX formula is stored in the database and can be retrieved using a query.

  3. DAX Studio: If the report is using Import or DirectQuery/Live Connection, you can use DAX Studio to retrieve the formula. DAX Studio is a free tool that can be used to connect to a Power BI report and retrieve the DAX formulas used in the report.

Note that if the original report was deleted, it may not be possible to retrieve the DAX formula without access to the data source.

View solution in original post

3 REPLIES 3
yooakim
New Member

I am not able to find the DAX expression, the problem we have is that the report is in Power BI Service but wre are not able to save it. And it seems as if the measure is only in the report.

Any other suggestions? @MAwwad 

yooakim
New Member

Thanks @MAwwad for a great list, I'll explore these options. Much appreciated 🙂

MAwwad
Solution Sage
Solution Sage

Yes, there are a few ways to retrieve the DAX formula for a measure in a Power BI report:

  1. Query Editor: If the data source is an Excel workbook, you can access the formula using the Query Editor in Power BI Desktop. Go to Home > Get Data > From File > From Excel and select the workbook. In the Query Editor, you can find the formula in the Applied Steps section.

  2. DirectQuery/Live Connection: If the report is using DirectQuery or Live Connection, you can retrieve the formula by connecting to the data source (e.g. SQL Server database) using SQL Server Management Studio or another tool. The DAX formula is stored in the database and can be retrieved using a query.

  3. DAX Studio: If the report is using Import or DirectQuery/Live Connection, you can use DAX Studio to retrieve the formula. DAX Studio is a free tool that can be used to connect to a Power BI report and retrieve the DAX formulas used in the report.

Note that if the original report was deleted, it may not be possible to retrieve the DAX formula without access to the data source.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.