从 Power BI 中存在的列数据集中删除所有 HTML 标签
Remove all HTML tags from column present Dataset in Power BI
这里是关于列内的文本格式作为其值的查询。
场景是
我有一个 Power BI 数据集,其中包含 HTML 个标签。
现在我想从列值中删除所有 HTML 标签,只保留纯文本。
为了更好地理解下面的例子-
Column1 = "
<ul style="margin-top:0in;margin-bottom:0in;margin-left:0.375in;unicode-bidi:embed;direction:ltr;"></ul></ul><p>
Number of products sold</p><p>2000</p><p>This is for the month of January</p>
"
现在所需的格式化文本应该是 -
Number of products sold 2000 This is for the month of January
我听说我们可以用 Power Query 做到这一点,但我对此了解不多,有人可以指导我吗?
你可以使用这个:
= Web.Page("your html text")
确保将 " 字符转义为 ""
Html.Table([此处为您的列名], {{"text",":root"}}){0}[text]
这里是关于列内的文本格式作为其值的查询。
场景是
我有一个 Power BI 数据集,其中包含 HTML 个标签。 现在我想从列值中删除所有 HTML 标签,只保留纯文本。
为了更好地理解下面的例子- Column1 = "
<ul style="margin-top:0in;margin-bottom:0in;margin-left:0.375in;unicode-bidi:embed;direction:ltr;"></ul></ul><p>
Number of products sold</p><p>2000</p><p>This is for the month of January</p>
"
现在所需的格式化文本应该是 -
Number of products sold 2000 This is for the month of January
我听说我们可以用 Power Query 做到这一点,但我对此了解不多,有人可以指导我吗?
你可以使用这个:
= Web.Page("your html text")
确保将 " 字符转义为 ""
Html.Table([此处为您的列名], {{"text",":root"}}){0}[text]