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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
JohnnyK
Advocate II
Advocate II

Python to read and work on Salesforce report

Good day.

 

I'm pulling a report from Salesforce.com into Power BI desktop. Then I want to use Python script work on this Salesforce report (to produce a data frame for visuals).

 

How can I used Python to read the imported Salesforce report?

 

Thank you.

 

Here shows a way when Python to read a local Excel file, and I'm wondering what's the way to use Python to read Salesforce report.

https://community.powerbi.com/t5/Desktop/PYTHON-INTEGRATION-WITH-POWER-BI-IMPORTING-EXCEL-TO-POWER-B...

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @JohnnyK 

In the Power Query editor you can click on Run Python Script from the Transform section of the Ribbon

pyth.png

 

You need to have Python installed on your PC for this to work.

 

Any reason you are using Python for this?  Can't you do whatever you need just by using Power Query?

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

3 REPLIES 3
EugeneLebedev
Helper III
Helper III

Yes, there is. Here is an out-of-the-box solution providing exactly what you described: https://vidi-corp.com/salesforce-reports-connector-to-power-bi/

PhilipTreacy
Super User
Super User

Hi @JohnnyK 

In the Power Query editor you can click on Run Python Script from the Transform section of the Ribbon

pyth.png

 

You need to have Python installed on your PC for this to work.

 

Any reason you are using Python for this?  Can't you do whatever you need just by using Power Query?

 

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


@PhilipTreacyHi Philip, thank you for your reply!

 

The visual I need requires part of pivot table (a few line of pivot table, together with some 'manual' calculated rows) produced from the Salesforce report imported, so I am thinking Python might help in such case.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.