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
nbufff
Helper I
Helper I

Help! Same DAX works in PowerBI Query but not work in Excel Query

Hello all, I used below query code to get the data by by SAAS. It is weir that it works perfectly in Power BI Query but in Excel query it pop up with an error of Access Denied.  I cleared the permissions in Data source setting and used the credential again with my account  but it still failed.  Did I miss something in Excel Query?

 

Source = AnalysisServices.Database("powerbi://api.powerbi.com/v1.0/myorg/PUB_Data", "PUB_SKU", [Query="EVALUATE VALUES('1#+SM+Missing+Region')", Implementation="2.0"])

 

2 REPLIES 2
lbendlin
Super User
Super User

In Excel you need to use MDX, not DAX.

@lbendlin, such query actually works well when I run it by connecting to company internal data by VPN.

But it is weird that I will encounter the permission error when I run it within company network. So I assume the DAX should work but may have issue using in Excel. P.S. If I'm using the query by MDX, could you pls give me a hint how to use that in Excel? 

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

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

Fabric Community Update - June 2025

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