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
Anonymous
Not applicable

ODBC SQl Query Connection but No Data

Hello,

 

Due to the system limitations, I am only able to use a SQL query with ODBC to connect to the data table. However, only the columns pull and no data generates. Freshing the data doesn't work, reestablishing the connection doesn't work, changing the ODBC bit connection doesn't work, and if I try without the SQL query nothing works. Am I missing something in the query to get the data to populate?

 

= Odbc.Query("dsn=PostgreSQL35W", "SELECT * FROM schema.table WHERE 'reporting_quarter_445' IN ('2018-Q1','2018-Q2','2018-Q3','2018-Q4','2019-Q1','2019-Q2','2019-Q3','2019-Q4','2020-Q1','2020-Q2','2020-Q3','2020-Q4','2021-Q1','2021-Q2','2021-Q3','2021-Q4')")

 

Thanks!

-Christopher

5 REPLIES 5
ThomasMob
New Member

Was the solution found?

 

I have the kind of the same problem:

ODBC connection does work, only the tables/data is not loading.

(to make it even more strange: if I put the datagateway on my personal computer (same netwerk, same settup) everything works well).

v-jayw-msft
Community Support
Community Support

Hi @Anonymous ,

 

Have you tried excute the same SQL in database? Is there any data?

 

Best Regards,

Jay

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

Hello @v-jayw-msft 

 

Thank you for reaching out! Unfortunately, the IT team whom I work with has stated to access the data it is supposed to be the ODBC. 

 

Edit: The reason for ODBC is because the database is Greenplum based.

 

Thanks!

-Chris

amitchandak
Super User
Super User

@Anonymous , I think you have mention Query in advance Property.

AdvanceProperty.png

Anonymous
Not applicable

Good Day @amitchandak ,

 

You are correct. The Query is in the advance property, but there is no data in the results. I can get a connection and the columns to populate, but none of the information.

 

Below is a screenshot of the advanced options filled out, as you have shown:

thompc16_2-1594660818302.png

 

 

Below is the query showing the columns, but no information in the table (even though there is in the system):

thompc16_1-1594660719075.png

 

Thanks!

-Chris

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.