Forum Discussion
Multiple lines text in a table or Matrix
- 10 years ago
Anonymous, it appears not to be SQL related but a direct issue with PowerBI.
I have made contact witht hem and they are activly looking into this.
My way around this for now is to pull the data into a pivot table in Excel and use the workbook function now available in BI, not ideal but a work around.
Thanks for your help.
CraigBlackman Can you clarify something for me? Is this one value that splits in Excel, but not in Power BI, or are you saying an entire table of data is being rolled into one line?
I'm assuming the first is accurate. Do you have any hidden characters in the text value, like paragraph or line breaks? Excel will split these into multiple lines, Power BI may not and thus if it is one value will just show it as such... (I haven't tested this)
Hi Anonymous,
It is one field thats wrapped up into 1 line, not the whole table.
It appears that the associated field in our SQL database uses a double space as the new line identifier.
Thanks
Craig
- Anonymous10 years agoNot applicable
CraigBlackman can you pull the data from the data using a query? You could specify a function to split text for that field on that delimiter if you want it in two rows instead of the one.
- CraigBlackman10 years agoHelper III
Hi Anonymous,
The data is presently using a SQl query to do so, so yes I can.
Not sure how to do as you suggested. Can you point me in the right direction?
Thanks
Craig
- Anonymous10 years agoNot applicable
CraigBlackman There are multiple ways to accomplish this. This forum has several different solutions to the problem, in your case you would just change the comma delimiter to double space.
http://stackoverflow.com/questions/5493510/turning-a-comma-separated-string-into-individual-rows
- Greg_Deckler10 years agoCommunity Champion
You might be able to use M code Text.Replace to replace the new line characters from SQL with ones that Power BI might recognize:
https://msdn.microsoft.com/en-us/library/mt260659.aspx