Native Query in Analysis Services with ODBC

MARTIN PEREZ Miguel 41 Reputation points
2022-10-17T19:52:22.687+00:00

Hi,

We are trying to import data by using a native query in Visual Studio ; we use on our side ODBC for our Teradata servers
Problem is when we try to create the expression, we receive a popup saying that "native queries aren't supported by this value"

https://learn.microsoft.com/en-us/analysis-services/tabular-models/ssas-import-query?view=asallproducts-allversions

Does the Value.NativeQuery don't work with the ODBC ?

Thanks for your advice

Azure Analysis Services
Azure Analysis Services
An Azure service that provides an enterprise-grade analytics engine.
436 questions
{count} votes

Accepted answer
  1. BhargavaGunnam-MSFT 25,876 Reputation points Microsoft Employee
    2022-10-21T23:57:14.733+00:00

    Hello @MARTINPEREZMiguel-8928 ,

    I got a confirmation from the product team that Value.NativeQuery doesn't support ODBC data sources. But ODBC has a special function for native query,

    Odbc.Query(connectionString as any, query as text, optional options as nullable record) as table  
      
    Example: Odbc.Query("dsn=your_dsn", "select * from Customers")   
      
    output: table  
    

    Reference document:
    https://learn.microsoft.com/en-us/powerquery-m/odbc-query

    ------------------------------

    • Please don't forget to click on 130616-image.png and upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful