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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.