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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
siva_powerbi
Helper IV
Helper IV

invoke power query from DAX

I have power query M code that generates the table from JSON input, I am able to load to the DAX using close and apply but I need a way to programatically load the result set from power query to DAX.

 

Not sure where to start or how to start.

 

Any help is appretiated.

 

Siva

2 REPLIES 2
v-yingjl
Community Support
Community Support

Hi @siva_powerbi ,

You should know that DAX and power query are different.

Please refer this article which introduces it in details: M or DAX? That is the Question! 

In essence, Power Query (M) is used to query data sources, clean and load data, DAX is used to analyze data in power bi.

Power query could affect the underlying data, but DAX could not.

 

Best Regards,
Community Support Team _ Yingjie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

edhans
Super User
Super User

This is what Scheduled Refresh does in the service, or the Refresh button in the Power BI Desktop app does. You cannot use DAX to trigger a refresh.

 

If you want to manually trigger it you could add an Power Platform app visual that will use a Power Automate flow to trigger the refresh, and coming soon is a Power Automate visual for Power BI (soon as in, the tools exist in Power Automate already, but not yet in Power BI, so real soon) that I hope will let you trigger a refresh with a simple button click.

 

But DAX is just a set of functions for analysis, not for making programming calls.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.

Top Solution Authors