Forum Discussion
TheKnall
7 years agoFrequent Visitor
Get HTML code in textfile into 1 row in data model
Hi I have a text file that I have loaded into Power BI. The text file contains a HTML code. When loaded into Power BI the text is devided into seperate rows. I want to use the html code in...
- 7 years ago
Hi TheKnall ,
Based on my test, you could use below functions:
In query editor, you could use text.combine function(https://docs.microsoft.com/en-us/powerquery-m/text-combine):
let Query1 = Text.Combine(#"Table1"[Column1]), #"Converted to List" = {Query1}, #"Converted to Table" = Table.FromList(#"Converted to List", Splitter.SplitByNothing(), null, null, ExtraValues.Error) in #"Converted to Table"Result:
In dax, you could use CONCATENATEX function:
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax
CONCATENATEX = CONCATENATEX('Table1','Table1'[Column1])Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
v-danhe-msft
7 years agoMicrosoft Employee
Hi TheKnall ,
Based on my test, you could use below functions:
In query editor, you could use text.combine function(https://docs.microsoft.com/en-us/powerquery-m/text-combine):
let
Query1 = Text.Combine(#"Table1"[Column1]),
#"Converted to List" = {Query1},
#"Converted to Table" = Table.FromList(#"Converted to List", Splitter.SplitByNothing(), null, null, ExtraValues.Error)
in
#"Converted to Table"
Result:
In dax, you could use CONCATENATEX function:
https://docs.microsoft.com/en-us/dax/concatenatex-function-dax
CONCATENATEX = CONCATENATEX('Table1','Table1'[Column1])
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He