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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
ImkeF
Super User
Super User

Problem with editor: Cutting code

If experienced this repeatedly within the last days:

 

When posting an answer with code, the code is being cut. Very annoying.

 

It shows perfectly OK in all modes: Richt text, HTML and preview but once posted it's being cut seeminly randomly:

just an example here: http://community.powerbi.com/t5/Desktop/Generate-incremental-number-in-groups/m-p/20020#M6053

 

This happens with text/code being copied from Excel, Word or PowerBI itself.

 

Any ideas how to avoid that?

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

1 ACCEPTED SOLUTION
greggyb
Resident Rockstar
Resident Rockstar

I don't see any code chopping in the thread you posted. My eyeball diff of the code in the code block and the code outside of the code block says they're identical.

 

I can open up the file you posted and paste in the code from the code block and get identical results to the query in the file.

 

The code block doesn't wrap text, but preserves line breaks as they are in the source text. This is dissimilar to the automatic reflowing that you get in non-code block text. You can always scroll right in the code block to see the rest of the line:

Capture.JPG

View solution in original post

2 REPLIES 2
greggyb
Resident Rockstar
Resident Rockstar

I don't see any code chopping in the thread you posted. My eyeball diff of the code in the code block and the code outside of the code block says they're identical.

 

I can open up the file you posted and paste in the code from the code block and get identical results to the query in the file.

 

The code block doesn't wrap text, but preserves line breaks as they are in the source text. This is dissimilar to the automatic reflowing that you get in non-code block text. You can always scroll right in the code block to see the rest of the line:

Capture.JPG

@greggyb,

thank you very much for your answer - showed that this is a browser problem with IE 11:

 

1) The code formatted as code only shows 1 line:

ImageProblemCodeCut.png

 

2) The code pasted as simple text doesn't show the end of the lines - basically cutting everyting off after the closing parenthesis.

ImageProblemCodeCut2.png

Thanks for pointing that out - switching to Opera solved this problem!

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Kudoed Authors