Forum Discussion

uaydogdu's avatar
uaydogdu
Icon for Helper I rankHelper I
3 years ago
Solved

Commenting out single line in DAX formula

Dear All,

DAX function doesn't recognize single line comment out in a DAX Formula anymore. We get lots of errors in our tabular model.

 

I've tried "//", "--" and "/* */"

Is it a bug ?

I apreciate your suggestions

Regards,

 

  • Hi uaydogdu 

     

    I don't have this problem with Power BI Desktop version 2.112.603.0 64-bit (December 2022). See below result:

     

    Where did you have this problem? Can you provide the product and its version information?

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it. Highly appreciate your Kudos!

3 Replies

  • For what it's worth, you can't make the first line a comment. I was trying to create a table, and wanted to try a different way, so I copied the first line and then commented it out, and DAX wouldn't let me save. I moved it below my new line and commented it out and it worked fine.

  • v-jingzhang's avatar
    v-jingzhang
    Icon for Community Support rankCommunity Support

    Hi uaydogdu 

     

    I don't have this problem with Power BI Desktop version 2.112.603.0 64-bit (December 2022). See below result:

     

    Where did you have this problem? Can you provide the product and its version information?

     

    Best Regards,
    Community Support Team _ Jing
    If this post helps, please Accept it as Solution to help other members find it. Highly appreciate your Kudos!