# How to Add Comments to Power BI DAX Codes

> To add comments to DAX codes in Power BI, type two dashes into the formula bar line, type your comment, and click the Commit button to apply the changes and update your report.

Canonical: https://livedemo.ai/tutorials/how-to-add-comments-to-power-bi-dax-codes/
Apps: Power BI
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a2d03a98365d086570633/preview?step=1

## Steps

1. Inside Power BI's data model, click the formula bar and type two dashes (--) into the line where you wish to add a comment.
2. After that, type your comment.
3. Click the 'Commit' button afterwards to apply the changes.
4. After completing these steps, your comments will be added to the DAX code in your Power BI report.
