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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Kharvok
Frequent Visitor

Record DAX Measure with Power Query

Is it possible to reference or record a DAX measure in Power Query? 

4 REPLIES 4
TomMartens
Super User
Super User

Hey,

 

actually this is not possible.

You have to imagine the whole Power BI "Magic" as  layered tricks:

 

The first layer are the queries that extract and transform data from data sources, most of the time the result of a query is a table that will be used in the data model.

 

The 2nd layer are calculated columns

 

The 3rd layer are measures

 

Each layer builds upon its predeccessor, for this reason slicer can not interact with calculated columns, meaning a selection in a slicer will not affect the calculation of a calculated column, it just filters the rows.

 

This "image" may explain, why it's not possible to reach out from a query to a measure.

 

Hopefully this helps

 

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

If i were to calculate my values in a column rather than a measure I should be able to circularly query this table?

Greg_Deckler
Super User
Super User

I'm not entirely sure what you mean by that but in general, no. Power Query is M and you cannot use DAX in Power Query. What exactly are you trying to do?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

I have measures calculating Daily, Weekly, Monthly totals. I am trying to record or store these values in a dynamic table upon refresh within PowerBI.

 

The issue is I can't do this in the database because this data is from an export from a third party vendor. I do not have access to the data source.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.