Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello,
Goal: I would like to extract information from emails that are in HTML format.
The Context: Cisco UCCX emails call center data in html form.
I open up Power BI desktop and select "Get Data"
I select "more" and type in search bar "Microsoft" and select "Microsoft Exchange".
From there, I select all my emails, some 200 of them (for example) that has the Cisco data.
I choose the body of the email, and click "Remove Other Columns".
However, the data is unusable because it's in HTML format.
Can anyone help?
Solved! Go to Solution.
It seems that you want to extract data from HTML emails and use it in Power BI. However, the default method of importing data from Microsoft Exchange does not parse the HTML content properly. To solve this problem, you have two options:
Use a Power Query function to parse the HTML content. You can use the Web.Page function to convert the HTML content into a table. To do this, you need to add a custom column in Power Query Editor, and use this formula:
web.page()
Web.Page - PowerQuery M | Microsoft Learn
This will create a new column with a table value for each email. You can then expand the table and select the columns you want to keep. You may need to do some further transformations to clean up the data.
Use a third-party HTML parser to extract the data. There are some online tools that can parse HTML data and convert it into CSV or JSON format. For example, you can use Zebra BI or ParseHub to parse HTML data. You can then import the CSV or JSON file into Power BI using the Get Data option.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
It seems that you want to extract data from HTML emails and use it in Power BI. However, the default method of importing data from Microsoft Exchange does not parse the HTML content properly. To solve this problem, you have two options:
Use a Power Query function to parse the HTML content. You can use the Web.Page function to convert the HTML content into a table. To do this, you need to add a custom column in Power Query Editor, and use this formula:
web.page()
Web.Page - PowerQuery M | Microsoft Learn
This will create a new column with a table value for each email. You can then expand the table and select the columns you want to keep. You may need to do some further transformations to clean up the data.
Use a third-party HTML parser to extract the data. There are some online tools that can parse HTML data and convert it into CSV or JSON format. For example, you can use Zebra BI or ParseHub to parse HTML data. You can then import the CSV or JSON file into Power BI using the Get Data option.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
could you pls provide some sample data and expected output?
Proud to be a Super User!
User | Count |
---|---|
84 | |
78 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
53 | |
50 | |
40 | |
40 |