Quick summary
Adding comments to Power BI DAX code helps analysts document their logic directly inside the data model formula bar, making measures easier to audit and maintain. You can comment out any DAX line instantly using a double-dash syntax without affecting report calculations.
Steps
- Inside Power BI's data model, click the formula bar and type two dashes (--) on the line where you want to add a comment.
- After typing the double dashes, type your comment text on the same line.
- Click the Commit button to apply and save the changes to your DAX code.
- After completing these steps, your comments are added to the DAX code in your Power BI report.
.gif)



