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
jaryszek
Memorable Member
Memorable Member

Execute Queries Dax REST API for Direct Lake over OneLake – real examples?

Hi all,

I’m using Direct Lake over OneLake and trying to run DAX queries via the executeQueries REST API.

I’m not looking for docs — only real, working REST examples.

Looking for someone who has actually done this to share:

  • The exact REST endpoint used for executeQueries

  • Headers (auth + content-type)

  • The exact JSON body that worked (simple DAX like EVALUATE TOPN(10, Table))

  • How you authenticated:

    • Service principal or user

    • Required API permissions and workspace role

  • Which semantic model ID you targeted for Direct Lake over OneLake

Even sanitized Postman or curl examples would help a lot.

Thanks!

2 REPLIES 2
v-pgoloju
Community Support
Community Support

Hi @jaryszek,

 

I’d suggest checking the documentation linked below. It explains the exact REST endpoint, required headers, and sample JSON requests, which should help you verify your setup and troubleshoot the issue.

https://haribiacademy.com/2024/02/how-to-use-execute-queries-dax-power-bi-rest-api/

 

Since you’re specifically looking for real, working examples, it would also be helpful if other community members who have done this recently could share their hands-on experience. Let’s wait and see if anyone else can add more practical examples or insights.

 

Thanks & Regards,

Prasanna Kumar

Thanks for the link. 
Let's see if somebody run this succesfully with DirectLake...

Best,
Jacek

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!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI 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.