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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
iBusinessBI
Kudo Collector
Kudo Collector

Run DAX Query against Dataset - in Dataflow?

Can we run a DAX Query against a Dataset using a Dataflow (not Power Automate)?

Is should be straightforward - if I want to select a data using a DAX query from a Power BI Dataset, I should be able to do it easily using Power Query / Dataflow.
I feel it's rather strange that I need to go to another service (Power Automate) to do such a basic thing.
It should be integrated into Power BI environment.

Is it something on the to-do list?

Am I missing something?

1 ACCEPTED SOLUTION
iBusinessBI
Kudo Collector
Kudo Collector

So I did find a solution!

It doesn't require Premium and it also doesn't use REST API either.

I used OLE DB connection with DAX query.

I copied the connection string from Analyze in Excel when I did a drill-through action.

It also runs as scheduled refresh in the Service via Gateway.

So solved!

View solution in original post

2 REPLIES 2
iBusinessBI
Kudo Collector
Kudo Collector

So I did find a solution!

It doesn't require Premium and it also doesn't use REST API either.

I used OLE DB connection with DAX query.

I copied the connection string from Analyze in Excel when I did a drill-through action.

It also runs as scheduled refresh in the Service via Gateway.

So solved!

TomMartens
Super User
Super User

Hey @iBusinessBI ,

 

basically you can use two approaches:

  • XMLA endpoint
    you can use the XMLA endpoint of a Power BI workspace (backed by Power BI Premium or Premium Per User) to connect to Power BI dataset to run a DAX query by using the Azure Analysis Services database connector
  • Custom Connector/Rest API
    Create a custom connector that is utilizing Power BI's Rest API interface to issue a DAX query: https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/execute-queries

Hopefully, this provides some idea to tackle your challenge.

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI 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.