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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors