How to Break Line in Power Query | Custom Column

SHARE:

How to Line Break in Power Query M Language, Concatenate Text with Line Break in Excel, Line break in Power Query, Line Break in Power Bi DAX

 

How to Line Break in Power Query M Language

Line breaks text in Power Query M language can be an important step. When you want to show text by Line Break in a custom column by combining other column text after applying the line break. This step is a little tricky. Please find the below step-by-step tutorial. 

Text.Combine is the M language function which is very similar to CONCATENATE. The CONCATENATE function is widely used in Excel and DAX to merge the text among two or multiple columns. 

The Syntax of Text.Combine is :

Text.Combine(texts as list, optional separator as nullable text) as text


How to break line in Power Query

By following the same process, users can CONCATENATE with Line Break two or more Excel columns with Power Query inside Excel.

Original data format I have 

How to Line Break in Power Query M Language


In the Power BI visual I have to show 


How to Line Break in Power Query M Language

If you use Test.Combine in Power Query Custom Column, it will show first row's result as below


I used to combine multiple-column data with M Query Text.Combine and apply the line break in Power Query

Step to Break Line in Power Query Custom Column

Step 1 

Add Column (menu bar) > Custom Column

How to Line Break in Power Query M Language


Text.Combine({[Week],"Job: "&[Job],"Job Description: "&[Job Description]}, "#")

Step 2

Now I am replaced the text delimiter "#" to "#(lf)" and see the magic

How to Line Break in Power Query M Language



Text.Combine({[Week],"Job: "&[Job],"Job Description: "&[Job Description]}, "#(lf)")

Note - I am using small L, it is not capital I or small i

Please use the code and let me know if any questions or feedback you have.





COMMENTS

About Author

Hi Freinds, This is Pijush

Labels

Name

EXCEL,8,MENU,1,PIVOTTABLE,2,power bi,5,POWER QUERY,9,SAP FICO,1,
ltr
item
My Accounting Tricks | Way to Smart Accounting: How to Break Line in Power Query | Custom Column
How to Break Line in Power Query | Custom Column
How to Line Break in Power Query M Language, Concatenate Text with Line Break in Excel, Line break in Power Query, Line Break in Power Bi DAX
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoLyHnsDsb5pA5KQQ9fX2SwoQB39x1P4rechwxNVxL_sxHcDFmnqHL2rq8_YJ-pQ3aArRmIwt1QuZb6TvhpUPfz7PC0-Agngc8kfI1BoZsYPR3vxiKPcAmPsgGhyphenhyphenTggrwrRDWB0DgN2wp_R8nZ0A5sgly7xv-yBwk9NPtmp71sQtfoWMkprf18dcPo0ELW/w640-h480/How%20to%20Line%20Break%20in%20Power%20Query%20M%20Language.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoLyHnsDsb5pA5KQQ9fX2SwoQB39x1P4rechwxNVxL_sxHcDFmnqHL2rq8_YJ-pQ3aArRmIwt1QuZb6TvhpUPfz7PC0-Agngc8kfI1BoZsYPR3vxiKPcAmPsgGhyphenhyphenTggrwrRDWB0DgN2wp_R8nZ0A5sgly7xv-yBwk9NPtmp71sQtfoWMkprf18dcPo0ELW/s72-w640-c-h480/How%20to%20Line%20Break%20in%20Power%20Query%20M%20Language.jpg
My Accounting Tricks | Way to Smart Accounting
https://www.myaccountingtricks.com/2023/10/how-to-line-break-in-custom-column-in-m.html
https://www.myaccountingtricks.com/
https://www.myaccountingtricks.com/
https://www.myaccountingtricks.com/2023/10/how-to-line-break-in-custom-column-in-m.html
true
409036469155030430
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content