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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
rax99
Helper V
Helper V

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
v-diye-msft
Community Support
Community Support

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.

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.

Mariusz
Community Champion
Community Champion

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.

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?

Mariusz
Community Champion
Community Champion

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.

 

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?

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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