cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Working with Python Classes in Power BI

Hi,

I have a class which I've written it for time series forecasting in python. 

But I think I cannot use it in Power BI like in Python? I just want to confirm is this right or not? If it's not right, how can I handle this in power bi?Because I couldn't find any way.

Thanks. 

6 REPLIES 6
Highlighted
Super User IV
Super User IV

Re: Working with Python Classes in Power BI

Like a custom module?

---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Super User IV
Super User IV

Re: Working with Python Classes in Power BI

@beyzakizilkaya ,

Refer if this can help https://towardsdatascience.com/using-python-in-power-bi-ee95a6b71443



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
Helper II
Helper II

Re: Working with Python Classes in Power BI

Yes @Greg_Deckler  it's a module.

Highlighted
Helper II
Helper II

Re: Working with Python Classes in Power BI

Thank you @amitchandak  but I have already implemented my python code like in the article you've referred. 

I want to use more complex code structure.

Highlighted
Post Partisan
Post Partisan

Re: Working with Python Classes in Power BI

In Power BI Desktop, select File > Options and settings > Options > Python scripting. The Python script options page appears. If necessary, specify your local Python installation path in Detected Python home directories. Select OK.
Highlighted
Super User IV
Super User IV

Re: Working with Python Classes in Power BI

OK, you should be able to use it in Desktop if you install the module in the right place. However, you will not be about to use the Service's cloud gateway for automatic refresh because it will not have the module. But, you should in theory be able to use a data gateway with Python and the module installed properly.

---------------------------------------

Putting square pegs in round holes since 1972.

I have a NEW book! 
DAX Cookbook from Packt
Over 120 DAX Recipes!




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Super Users of the Quarter - Q2 2020

Super Users of the Quarter - Q2 2020

Who are our Super User Superstars? Who made it to the top of the leaderboards? Get the answers!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Community Summit Australia – Join Online!

Community Summit Australia – Join Online!

Be a part of the leading Microsoft Business Applications digital event, curated for the APAC community.

Top Solution Authors