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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

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.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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