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

Join the OneLake & Platform Admin teams for an ask US anything on July 16th. Join now.

Reply
Gpop13
Helper I
Helper I

Connect to Semantic Model from Notebook and run a DAX

Hi,

I want to be able to connect to a semantic model in the workspace from a pyspark notebook, and execute some DAX like

EVALUATE
   INFO.MEASURES()

Is there a way to achieve this?

 

Thanks!

 

1 ACCEPTED SOLUTION
KNP
Super User
Super User

Hi @Gpop13,

 

I haven't tested, but have a look at this post and see if it helps.

https://www.fourmoo.com/2025/05/14/using-a-python-notebook-using-semantic-link-labs-to-write-a-dax-q...

 

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x

View solution in original post

3 REPLIES 3
v-saisrao-msft
Community Support
Community Support

Hi @Gpop13,

I hope you had a chance to review the solution shared by @KNP . If it addressed your question, please consider accepting it as the solution — it helps others find answers more quickly.
If you're still facing the issue, feel free to reply, and we’ll be happy to assist further.

 

Thank you.

KNP
Super User
Super User

Hi @Gpop13,

 

I haven't tested, but have a look at this post and see if it helps.

https://www.fourmoo.com/2025/05/14/using-a-python-notebook-using-semantic-link-labs-to-write-a-dax-q...

 

 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x

@KNP thank you so much for directing me to this. I was able to connect to a semantic model and run a dax. I have not written to any target table yet, but happy to close this here at this point.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors