Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in BI by (2.6k points)

Is there a way to comment M code / comment out lines or blocks of code?

1 Answer

0 votes
by (7.2k points)

To comment in power query m in POWER BI

It will supports  two different types of comments:

i) Single line comments can be started with //

ii) You can comment out multiple lines or comment out text in the middle of a line using /* 

Examples

*/ (e.g. = 5 + /* any comments */ 1)

 

It might seem to disappear in the formula bar if they are at the end of the line, but they are still there. 

Related questions

0 votes
1 answer
asked Feb 14, 2021 in BI by Chris (11.1k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Browse Categories

...