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
Marcinex
New Member

Connecting to the dataset from Excel - different options and issues

Hi All, I couldn't find a clear information in the docs nor community forum so it's time to ask. 

 

People in our organization connect to PowerBI datasets from Excel pivot tables. For the basic use cases it's working fine. But, there are users who creates multiple pivots based on a single connection in the single Excel file. Most of the time it works fine, but there are days (feels like it's random) when such Excel file cannot refresh and gives following error:

dmkblesser_0-1693416563095.png

This is really random. Our dataset connects to the Snowflake privatelink using Direct Query via PowerBI on premise gateway. Could it be somehow related?

 

And finally I was exploring different ways of connecting to the dataset from Excel:

1. Data -> Get Data -> From Power Platform -> From PowerBI -> selecting dataset

2. Data -> Get Data -> From Database -> From Analysis Services  -> providing workspace URL as a server powerbi://api.powerbi.com/v1.0/myorg/...

3. Data -> Get Data -> From Other Sources -> Microsoft Query -> OLAP Cubes -> providing workspace URL as a server powerbi://api.powerbi.com/v1.0/myorg/...

 

When I look into connections detail, I see some differences between options 1 and 2/3:

1. Initial Catalog=sobe_wowvirtualserver-XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX;Data Source=pbiazure://api.powerbi.com

2. Initial Catalog=<dataset_name>;Data Source=powerbi://api.powerbi.com/v1.0/myorg/...

 

Are these differences somehow significant?

 

6 REPLIES 6
lbendlin
Super User
Super User

Our users have migratged away from Analyze in Excel (MDX queries) towards "Excel with live connection" (DAX queries).  Maybe something to consider for your users too,

So I did more digging and it seems to me that "Excel with live connection" is not a replacement for "Analyze in Excel" as it basically gets data from a single visual, it's not the interface to the whole semantic model. The idea behind "Analyze in Excel" is to user be able to create whatever pivot table he or she needs using all metrics and dimensions avaliable in the model. 

Yes, it uses a single DAX query against the semantic model. The beautiful thing about this is that it is actually what our users always wanted (they disliked having to wrangle cubes) and it also dramatically reduces the strain on the Premium capacity. 

 

It's not really related to the visual - you can run whatever DAX you want.

 

The user can check the connection details to see if the connection is MDX or DAX.

So our users differes 🙂 People in my org want to have cube. How to check if the connection is MDX or DAX? Whatever I do, I still see things like "MDX Compatibility=1" in connection details. The only difference is that there can be DAX expression. But I feel like it's not the case when I want to have cube like experience.

I am glad I have my users and not yours 🙂 

 

But you are right, they changed the connection mode for the "live"  connection (which is a bit of a lie anyway) from powerbi://api.powerbi.com to pbiazure://api.powerbi.com - without telling us. Not cool.

 

Is it enough to just enable this option?

Marcinex_1-1713952065948.png

As far as I understand, from end user perspective, there's no way to tell what's the connection mode (MDX or DAX).

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 Kudoed Authors