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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
volyn
Frequent Visitor

how to use POWER QUERY values in dataframe

Hello,

 

I have built Python visual in POWER BI desktop and I tested it on fictive data generated directly in script via DataFrame

 

df = pd.DataFrame({
'group': ['A'],
'var1': [38],
'var2': [29],
'var3': [17],
'var4': [27],
'var5': [28]
})
 
 
If I want to use values from my query which was created in POWER QUERY, how can I  use it to feed DataFrame in Python pls?
 
Thanks
 
O.
1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @volyn 

I found this article to see if it helps you. You need creat a table from power query and close&apply. Then the table will show under the Fields. And drag it to the python visuals Values directly.

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals

and this the video.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chenwuz-msft
Community Support
Community Support

Hi @volyn 

I found this article to see if it helps you. You need creat a table from power query and close&apply. Then the table will show under the Fields. And drag it to the python visuals Values directly.

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-visuals

and this the video.

 

Best Regards

Community Support Team _ chenwu zhu

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Fabcon_Europe_Social_Bogo

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.