Querying Tabular Models with Excel Pivot Tables

Charlie Day 1 Reputation point
2021-03-16T20:18:28.513+00:00

I have a relatively small 57MB tabular model that I would like to query with Excel Pivot table connections. The SSAS server is 2019 and Excel is 2016. It returns the correct answers and behaves as expected but I am surprised that it is sending MDX queries to the server. This appears to be running against disk rather than in-memory since it is running MDX instead of DAX? I tried the same thing from browsing the model in SSMS and it generates MDX as well. I know that Power BI generates DAX queries regardless of SSAS mode so I gues this isn't suprising.

My question is what options are there for "end user" (no code) tools to efficiently query tabular models with DAX? My user base is all on Excel and I would like to build tabular models for them but the performance is severly lacking compared to the multidimensional counterpart. Power BI will come eventually but I have a large portion of users that prefer to live only in Excel. I am really hoping for a plug in or some other way for Excel to generate DAX queries instead of MDX.

Thanks for any help!

SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,344 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Lukas Yu -MSFT 5,826 Reputation points
    2021-03-17T03:00:53.98+00:00

    Hi,

    This a setting that you can change in Excel Connection Properties. You could create and modify odc file to specify use DAX instead of MDX to retrieve data.

    You could find detail steps in Marco Russo's article : Import Data from Tabular Model in Excel Using a DAX Query

    Regards,
    Lukas


  2. Darren Gosbell 1,471 Reputation points
    2021-03-17T03:15:26.56+00:00

    This appears to be running against disk rather than in-memory since it is running MDX instead of DAX?

    This is incorrect, queries against tabular models NEVER run against on-disk storage. An MDX query may run slightly slower than an equivalent DAX query as MDX has slightly different query semantics, but regardless of the query language used all queries against tabular models are resolved against the in memory storage.

    My question is what options are there for "end user" (no code) tools to efficiently query tabular models with DAX?

    Power BI Desktop is the main tool available at the moment which will generate DAX queries. Or if you are not interested in pretty charts and just want to view tables of data the Query Builder in DAX Studio can do this.

    but the performance is severly lacking compared to the multidimensional counterpart

    Have you compare the performance of an equivalent DAX query? It is possible that you have a general performance issue with one or more of your measures which is unrelated to the query language being used. But there are also still some types of models that still work better in multi-dim than in tabular.


  3. Charlie Day 1 Reputation point
    2021-03-18T14:42:20.84+00:00

    Running queries in Power BI are almost instantaneous compared to around one minute to pull Sales by Zip returning around 20K members. The dimension has roughly 100K members which I do not consider that large. I am baffeled at how Microsoft does not offer similar optimizations for Excel users - who I believe are still the majority of Power Users/Analysts that keep the gears of the organization turning.

    I found a few articles regarding "MDX Fusion" which offers optimizations if running Azure Analysis Services but it doesn't appear there are any plans to do so for on prem software.

    https://social.msdn.microsoft.com/Forums/expression/en-US/5f735b07-8927-497e-9bdb-9e0ddbe26140/my-excel-pivot-table-is-extremely-slow?forum=sqlanalysisservices

    https://ideas.powerbi.com/ideas/idea/?ideaid=6b331f0e-52b9-4367-b2b3-ded3b9608a13

    This is going to a hard sell for my users. Every release (since 2014) I make an effort to move to tabular models but there always seem to be show stoppers that are not being addressed. Lame that tabular Excel support is essentially abondonded.

    0 comments No comments

  4. Lukas Yu -MSFT 5,826 Reputation points
    2021-03-22T03:35:30.44+00:00

    I did some search and ran across several articles , sees like Excel had not provided yet a DAX generator for the query to Tabular model. Also those suggestions, in this aspect, are mainly focus on writing optimal DAX query manually. Perhaps this is not a satified answer to you.

    I have found similar request as yours have been raised to Excel team, and I upvoted it. You could upvote it too, hope Excel product team could update this feature eventually : Create Pivot Tables connected to DAX Native Provider

    Regards,
    Lukas


  5. Charlie Day 1 Reputation point
    2021-05-14T13:41:59.203+00:00

    Reviving this thread. I was speaking with a colleague about new features being released and thought for a second that this capability was being offered with this new feature... https://learn.microsoft.com/en-us/power-bi/collaborate-share/service-analyze-in-excel

    I was able to install and get it to work but lo and behold it still runs old MDX queries against the SSAS tabular models. I had a user contact me about a very very slow query yesterday that he could not return results via Excel. I built the equivalent pivot in Power BI and it is nearly instantaneous.

    Still very disappointed in the Microsoft BI stack for abondoning new features for Excel users (if nearly 10 years old is new).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.