LiveDemo - Open-source alternative to Storylane, Navattic, and Arcade | Product Hunt

How to Add Comments to Power BI DAX Codes



How to Add Comments to Power BI DAX Codes: step-by-step guide

  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.

Quick answer: 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.

About this Power BI tutorial

Easily document your DAX calculations in Power BI by inserting double dashes into the formula bar and committing the changes. This guide shows how to add Comments to Power BI DAX Codes in 4 steps, starting with "Inside Power BI's data model, click the formula bar and type two dashes (--) into the l..." and finishing with "After completing these steps, your comments will be added to the DAX code in your Power...". The interactive demo above is a click-through copy of the real Power BI interface, so you can rehearse each step before doing it in your own account.

Frequently asked questions

How many steps does it take to add Comments to Power BI DAX Codes?

4 steps. Each one is listed in order above, and the demo highlights exactly where to click.

Can I try it without changing my own account?

Yes. Clicking through the demo doesn't touch your Power BI data or settings. Once you know the flow, repeat it in your own workspace.

This tutorial is filed under Power BI. Related guides: How to Add Count in Power BI, How to Add Data in Power BI and How to Add Data Labels in Power BI. Last reviewed 05 Oct 2026.

LiveDemo - Open-source alternative to Storylane, Navattic, and Arcade | Product Hunt
🚀

Create your first interactive demo in minutes

No credit card required • Start building today

Start free→

This website uses cookies to enhance the user experience.

AcceptDecline