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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mohd_Naim
Helper I
Helper I

Pull All DAX expressions

Hi Guys,

 

Is there any way to pull all DAX expression only used in .pbix into csv or pdf file.

 

Thanks,

Naim 

2 ACCEPTED SOLUTIONS
negi007
Community Champion
Community Champion

@Mohd_Naim  There is workaround to achive this. Using Dax studio, you can copy all the measures that you have created in your dataset

 

1. Install Dax Studio (https://daxstudio.org/downloads/)

2. Connect your model to your dataset

3.  In dax studio select Define all measures to view all measures created by you

 

dax copy.png




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



Proud to be a Super User!


Follow me on linkedin

View solution in original post

v-yingjl
Community Support
Community Support

Hi @Mohd_Naim ,

You could export to a Power BI Templates file and open it with text.

Here is the document for your reference.

https://visualbi.com/blogs/microsoft/powerbi/exporting-measure-column-formulas-power-bi/

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4

Realize this is old but - 

  1. Open the Dataset\file with measures
  2. External Tools - Dax Studio
  3. Select DMV at top and search "measure"
     

rbartles111213_0-1697656690875.png

 

  1. Limit Columns - select Measuregroup_Name, Measure_Display_Folder, Measure_Name, Expression from $SYSTEM.MDSCHEMA_MEASURES

     

 

  1. Select "Results" and change it to static.

rbartles111213_2-1697656690877.png

 

  1. Then select Run and pick the place to save it. Then hit Save.
v-yingjl
Community Support
Community Support

Hi @Mohd_Naim ,

You could export to a Power BI Templates file and open it with text.

Here is the document for your reference.

https://visualbi.com/blogs/microsoft/powerbi/exporting-measure-column-formulas-power-bi/

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

negi007
Community Champion
Community Champion

@Mohd_Naim  There is workaround to achive this. Using Dax studio, you can copy all the measures that you have created in your dataset

 

1. Install Dax Studio (https://daxstudio.org/downloads/)

2. Connect your model to your dataset

3.  In dax studio select Define all measures to view all measures created by you

 

dax copy.png




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



Proud to be a Super User!


Follow me on linkedin

Thanks @negi007,  let me check.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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