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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.