cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper IV
Helper IV

How to query DAX from SQL Server

I need to create a sql view so my application can read the DAX (tabular) dataset as it is unable to query SSAS directly.

 

Is there a way I can set up a SQL View with a DAX query? The SSAS instance is on the same server as the DB engine

6 REPLIES 6
Highlighted
Super User IV
Super User IV

Re: How to query DAX from SQL Server

Hi @rax99 

 

Sorry, you can not as its totally different engine and database type.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.
Highlighted
Helper IV
Helper IV

Re: How to query DAX from SQL Server

Thanks for your reply @Mariusz. In that case, is there any way of dumping the results of a DAX query into a SQL table? Surely it should be possible as its just rows and columns?

Highlighted
Super User IV
Super User IV

Re: How to query DAX from SQL Server

Hi @rax99 

 

You can use DAX studio to get a CSV extract and later upload it to SQL tbl.

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

Highlighted
Helper IV
Helper IV

Re: How to query DAX from SQL Server

Sure, the issue here is automating this process will become a right pain.

 

Is there not a way of using linked servers to get the db engine to talk to SSAS Tabular?

Highlighted
Community Support
Community Support

Re: How to query DAX from SQL Server

Hi @rax99 

 

Please let me know if below post helps:

https://community.powerbi.com/t5/Desktop/Download-Export-all-queries-SQL-statements-from-Power-BI-De... 

 

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Highlighted
Helper IV
Helper IV

Re: How to query DAX from SQL Server

Sorry this doesnt apply as I am not after the sql statements. Im trying to query the DAX server model (SSAS) from SSMS (using SQL). But doesn't appear to be possible.

Helpful resources

Announcements
May 2020 Community Highlights

May 2020 Community Highlights

It’s time for another PBI Community recap!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Top Solution Authors