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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Diemples
New Member

How to turn on line number in DAX query formula bar

Hi, I am new. Excuse my simple question but I can't find the anwer so I must ask. Possible I am not searching the right keyword.

 

I've seen people writing mulitple lines in query formula bar and each line has a line number in the front for easy reading.  How do I enable that?  Mine doesn't have numbers in the front.  Thank you.  

Expected result: number 1, 2, 3 in front of each line

Diemples_1-1706833704337.png

 

Diane

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @Diemples 
The numbers appear automatically when you press alt+ enter.

You can also use a Dax formatted to make the code even more readable.
The link for formatting :

https://www.daxformatter.com/

You can paste the code on the head of the screen and just press "format"

Ritaf1983_0-1706845096270.png

 





If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
Diemples
New Member

That was it.  Thank you for your time!

Happy to help😊

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @Diemples 
The numbers appear automatically when you press alt+ enter.

You can also use a Dax formatted to make the code even more readable.
The link for formatting :

https://www.daxformatter.com/

You can paste the code on the head of the screen and just press "format"

Ritaf1983_0-1706845096270.png

 





If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.