Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
talesgadelha
New Member

Synching Python script and Microsoft Exchange

Hi, 

 

I'm new in PBi. I'm trying to use my mailbox to control the answered e-mails and high priority flags in my inbox. 

I set the Exchange as data source and synch my mailbox. Worked fine.

So, in the next step, i tried to write a python script and use this 'dataset'.

I tried about 3 different ways to declare the dataset, but always return a error.

How can i replace the "pd.read_excel(r'<put your path here>')" with a comand to use the "Mail" (Exchange data source result) ?

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @talesgadelha 

 

What do you want to use Python to do about the mailbox result? If you want to transform and shape the data, you can use Power Query Editor to do that. It is very powerful. 

 

If you only want to use Exchange connector to get the mailbox data and have it for other use, you can export the data into an Excel or CSV file, then use it with Python. With DAX Studio's Export Data feature, it's very easy.

DAX Tools - DAX Studio 15 – Export data - YouTube

Exporting Data from Power BI Desktop to Excel and CSV – Part 1: Copy & Paste and DAX Studio Methods ...

 

Let me know if you have other concerns.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

 

View solution in original post

2 REPLIES 2
talesgadelha
New Member

Hi everyone.,

As i said, i'm a liitle bit new in power bi,

My problem was solved by opening the power query and selecting the hidden atributes.

 

Bye

v-jingzhang
Community Support
Community Support

Hi @talesgadelha 

 

What do you want to use Python to do about the mailbox result? If you want to transform and shape the data, you can use Power Query Editor to do that. It is very powerful. 

 

If you only want to use Exchange connector to get the mailbox data and have it for other use, you can export the data into an Excel or CSV file, then use it with Python. With DAX Studio's Export Data feature, it's very easy.

DAX Tools - DAX Studio 15 – Export data - YouTube

Exporting Data from Power BI Desktop to Excel and CSV – Part 1: Copy & Paste and DAX Studio Methods ...

 

Let me know if you have other concerns.

 

Regards,
Community Support Team _ Jing
If this post helps, please Accept it as the solution to help other members find it.

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.