Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi
I have a share point list that has comments in HTML. I have used the below formula to convert to plain text in Power Query
Html.Table([ColumnName] , {{"text",":root"}})
however there are rows that have no comments in the sharepoint list and the formula errors saying that the type null can not be converted to text. how do i get around this issue.
thanks
Solved! Go to Solution.
Hi @WJ876400
You can deal with this error by usng try ... otherwise like so
try Html.Table([ColumnName] , {{"text",":root"}}) otherwise null
So if you encounter an error at this point, Power Query will just return null and the query won't stop at this step.
Regards
Phil
Proud to be a Super User!
Try this in PQ advance editor - Table.AddColumn(#"Previous column", "New column name", each Html.Table([Html column],{{"PlainText",":root"}})).
Hi @WJ876400
You can deal with this error by usng try ... otherwise like so
try Html.Table([ColumnName] , {{"text",":root"}}) otherwise null
So if you encounter an error at this point, Power Query will just return null and the query won't stop at this step.
Regards
Phil
Proud to be a Super User!
Hi @WJ876400 ,
Is it like this?
Would you mind providing your HTML code? I hope to test it.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Thanks for the response, i have followed the steps but it hasn't worked. I don't get the options in the example on the drop down menu
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
56 | |
38 | |
35 |
User | Count |
---|---|
85 | |
66 | |
59 | |
46 | |
45 |