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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
campagnol54
Advocate I
Advocate I

How to search a string in all DAX formulas of a Power BI desktop report ?

Hello,

 

I would like to look for a string included in my DAX formulas. Is there any way to do it ?

I unzipped the pbix file but I couldn't find my DAX formulas in any file.

Subsequently, it would be great to export/edit all DAX formulas to be able to compare them.

 

Thanks in advance for any help

Didier

2 ACCEPTED SOLUTIONS

I found a much better way by searching from a Power BI report. You can even search in more than one report. 

Of course, you can export the formulas into Excel.

 

Image 6.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

User manual and sources are in the first tab of the report in GitHub : https://github.com/didierterrien/Power-BI-assistant

View solution in original post

 

I moved the pbix file to GitHub :  https://github.com/didierterrien/Power-BI-assistant

 

Very good tutorial by Ruth Pozuelo (Curbal) : https://www.youtube.com/watch?v=Jg7n_cLjtTw

View solution in original post

5 REPLIES 5
campagnol54
Advocate I
Advocate I

I found a way to do it in DAX studio after connecting to the Power BI report:

//  Uncomment the query you need

//  Query to get columns :
//select [ExplicitName] as [Column name], [Expression] as [Formula] from $SYSTEM.TMSCHEMA_COLUMNS where [Type]=2 and [SystemFlags]=0

//  Query to get measures :
select [Name] as [Measure name],[Expression] as [Formula] from $SYSTEM.TMSCHEMA_MEASURES

 

kevhav
Continued Contributor
Continued Contributor

So glad I found this on the community board, here.

 

I tried this and it worked. This is a huge help. Thanks @campagnol54!

I found a much better way by searching from a Power BI report. You can even search in more than one report. 

Of course, you can export the formulas into Excel.

 

Image 6.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

User manual and sources are in the first tab of the report in GitHub : https://github.com/didierterrien/Power-BI-assistant

 

I moved the pbix file to GitHub :  https://github.com/didierterrien/Power-BI-assistant

 

Very good tutorial by Ruth Pozuelo (Curbal) : https://www.youtube.com/watch?v=Jg7n_cLjtTw

v-chuncz-msft
Community Support
Community Support

@campagnol54,

 

As far as I know, there is no way available. You may submit an idea via https://ideas.powerbi.com/forums/265200-power-bi.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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