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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Gpop13
Advocate IV
Advocate IV

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 ;).
xOIEmaj

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.
image
fabric-SUbadge
Proud to be a Super User!

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 ;).
xOIEmaj

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.
image
fabric-SUbadge
Proud to be a Super User!

@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
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Free Fabric Certifications

Free Fabric Certifications

Get Fabric certified for free! Don't miss your chance.

January Fabric Update Carousel

Fabric Monthly Update - January 2026

Check out the January 2026 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.