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!Get Fabric certified for FREE! Don't miss your chance! Learn more
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.