Here are the current rules for the DAX clean up tool
Break after “=” if on line 1
Place a space after “(“
Place a space before “)”
Place a space after a “,”
Place a space before and after any operand and operator in an expression
Place a DAX function on a new indented line
After VAR name, always go to new indented line
RETURN should always be on it’s own line with a space above it
Any VAR should begin on a new line against the left margin
&& or || should be placed on the next row
Function parameters go to the new line based on line length
We’re open to continuous improvement on these rules. So please share below if you have any ideas.
Help us make this tool the go-to DAX formatter around the web.