Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JRHans09
Resolver II
Resolver II

Ctrl + / not working for commenting in DAX

I am no longer able to use Ctrl + / as a keyboard shortcut to comment out sections of code in DAX. Any ideas why this is happening? I have upgraded to the latest version (Oct 2018). After the upgrade, I am now seeing line reference numbers next to each line of code, as well (though maybe this existed previous to Oct update, but I do not remember seeing it). Maybe the two are unrelated, but regardless, it seems that I am not able to use comment keyboard shortcuts. Ultimately, it does not prevent continuing, because manual insert of // still works, but less efficient.

 

Thanks.

1 ACCEPTED SOLUTION

That would be my guess. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

6 REPLIES 6
Eri99
New Member

For me it worked the combination : Ctrl #

markus_zhang
Advocate III
Advocate III

I think this is a bug. I'm pretty sure, with the most recent version, Ctrl + / still works 5 minutes ago, because I'm testing two pieces of code to see which one is more efficient, so I have to Ctrl + / a lot. Somehow it stops working suddenly. Alt+SHIFT+A still works but unable to remove comments added with Ctrl + /

 

Update:

It comes back and I figured out what happened.

Basically when you select the rows to comment/uncommet, you cannot select the full top row. For the top row and top row only you have to select the part starting from //, you cannot select the full row. If you select the full row, the color sometimes changes from blue to grey, as if focus leaves the editor.

Greg_Deckler
Community Champion
Community Champion

Huh, never knew that worked before.

 

https://powerbi.microsoft.com/en-us/blog/power-bi-desktop-october-2018-feature-summary/#daxEditor

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Alt + Shift + A used to work, as well. Neither are working, now. Any idea if these were removed or written over with new keyboard shortcuts?

That would be my guess. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Cheers. Thanks.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.