Forum Discussion
DAX Studio space after function name
- 5 months ago
If you already have it unchecked and reformatting (via the toolbar lightning bolt icon, Ctrl+K Ctrl+D, or right-click → Format DAX) still produces no space after the function names, here are the most common reasons this happens and how to fix it:
- The change wasn't applied / needs a restart After toggling the checkbox → click OK or Apply → close and reopen DAX Studio completely. Then paste your code fresh and format it again. Some users report the setting doesn't take effect until a full restart.
- You're using an outdated version of DAX Studio The option was added around early 2020 (following SQLBI's formatting rule update). If you're on a very old build (pre-3.x), it might not exist or behave inconsistently. → Go to Help → Check for Updates (or download the latest from https://daxstudio.org). As of 2026, grab the current release — it definitely supports this reliably.
- The code already has no spaces, or formatting is set to "Best Practice" style Some versions / integrations default to the modern SQLBI "no space after function" rule. Try this test:
- Paste exactly this (with spaces already there):
EVALUATE ADDCOLUMNS ( VALUES ( 'Customer'[Gender] ), "Test", CALCULATE ( [Sales Amount] ) )
- Format it. If it removes the spaces → the setting is being ignored or overridden. If it keeps them → good, the option is working; your original code might just need manual spaces added first before formatting.
- Paste exactly this (with spaces already there):
Hi stribor45
I believe that "Skip space after function name" should be turned off if you want a space between function name and the opening parenthesis. At least it appears to work that way when I tested it just now.
"Skip space" here means "do not include space", rather than "skip one character space to the right after function name".
Perhaps the option could be renamed 😉
yeah i tried it with off before i posted didnt make difference. i switched it again before making this post this is what i see
- pcoley5 months agoSuper User
If you already have it unchecked and reformatting (via the toolbar lightning bolt icon, Ctrl+K Ctrl+D, or right-click → Format DAX) still produces no space after the function names, here are the most common reasons this happens and how to fix it:
- The change wasn't applied / needs a restart After toggling the checkbox → click OK or Apply → close and reopen DAX Studio completely. Then paste your code fresh and format it again. Some users report the setting doesn't take effect until a full restart.
- You're using an outdated version of DAX Studio The option was added around early 2020 (following SQLBI's formatting rule update). If you're on a very old build (pre-3.x), it might not exist or behave inconsistently. → Go to Help → Check for Updates (or download the latest from https://daxstudio.org). As of 2026, grab the current release — it definitely supports this reliably.
- The code already has no spaces, or formatting is set to "Best Practice" style Some versions / integrations default to the modern SQLBI "no space after function" rule. Try this test:
- Paste exactly this (with spaces already there):
EVALUATE ADDCOLUMNS ( VALUES ( 'Customer'[Gender] ), "Test", CALCULATE ( [Sales Amount] ) )
- Format it. If it removes the spaces → the setting is being ignored or overridden. If it keeps them → good, the option is working; your original code might just need manual spaces added first before formatting.
- Paste exactly this (with spaces already there):
- stribor455 months agoPost Prodigy
After I pasted your coded from #3 and formatted it spaces remained. Your statement "your original code might just need manual spaces added first before formatting" what does that mean? I have to manually add the space after the function name? What is the point of this setting then?