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

Get Fabric certified for FREE! Don't miss your chance! Learn more

"Expose M Code of Queries Programmatically Within Power BI for Metadata Extraction"

 

Power BI currently allows users to view and edit M code in the Advanced Editor, but does not expose this code programmatically within Power Query or DAX. This limits the ability to build self-updating metadata models or data dictionaries inside the same file.

I propose enabling access to the M code of all queries via a built-in function or metadata view (similar to INFO.VIEW or #sections) so that users can extract the Source = line or full query logic dynamically.

This would allow for automated documentation, auditing, and governance — especially in enterprise environments managing hundreds of reports.

 

Status: New