Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi,
Is it possible to share a published Semantic Model's DAX codes i.e. the Measures' DAX codes Created Table DAX codes, even maybe the Power Query codes somehow? Preferably in a format that is readable without the need of Power BI Desktop.
I imagine it as part of a Data Dictionary, or a Code Inventory.
Thanks.
Solved! Go to Solution.
If you use info.measures() that will return a table with all the measures. Once added to the model you can add a page in the report to show all of them.
Hi @PImre
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.
Hi @PImre
I wanted to check if you had the opportunity to review the information provided by @Deku , @Uniqueusername and @andrewsommer . Please feel free to contact us if you have any further questions. If their response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
Hi @PImre
Thank for reaching out microsoft fabric community forum.
May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.
Thank you.
you can also use xmla endpoints (only if your model is on a premium workspace) to connect a client tool such as DAX studio or SSMS to your semantic model. And then use sql to query your model
there is a query to extract M code as well. I can't recall what it is but you can get it from the DMV list in dax studio
Not SQL, the DMVs have a SQL like syntax but are not SQL. The INFO functions are a DAX wrapper on the DMVs
You can use the TMDL pane to get the meta data of your pbix file included the DAX of all measures and create a table of that meta data.
Please mark this post as solution if it helps you. Appreciate Kudos.
Thanks!
How could I make tables out of the script I can see in TMDL view?
If you use info.measures() that will return a table with all the measures. Once added to the model you can add a page in the report to show all of them.
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 13 | |
| 10 | |
| 7 | |
| 4 |