March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Is there a way to use comments in DAX measure formulas in Power Pivot? I tried both //...., and /*...*/, and while they show up in blue initially and seem to be understood as a comment, they disappear when the model calculates.
Measure := //Apparently this comment will also disappear
SUM ([AMOUNT])
I figured out the solution to this. Sharing in case anyone else runs into the same problem. It seems that Power Pivot will remove comments in DAX code if they are not on a single line, and the single line has to be surrounded by other lines (can't be the last line). Seems like a strange bug. Why can't I end my code with a comment?
Measure:=SUM([Amount]) //This comment will be deleted by power pivot
Measure:=SUM([Amount])
//This comment will also be delted by power pivot
Measure:=SUM([Amount])
//This comment will be maintained because the next line is not blank
+0
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
21 | |
14 | |
11 | |
8 | |
5 |
User | Count |
---|---|
26 | |
21 | |
20 | |
14 | |
10 |