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
crichards
Frequent Visitor

QUERY ODBC data source - only import data WHERE condition is true

have a data source that i need to filter on condition before it is opened, thought that the Advanced Options method using an SQL query would be the best  but havnt had much success yet with the statement.. im a bit of a novice at SQL it appears.

 

ODBC (dsn=NetSuite)

BussinessName Pty Ltd

Administrator

 

table name is MESSAGE

 

wish to open all of MESSAGE where EVENT_ID !=""

 

 

 

 

3 REPLIES 3
v-shex-msft
Community Support
Community Support

Hi @crichards,

 

I think you can use the SQL statement option to load data with conditions.

SELECT * FROM XXXXX WHERE EVENT_ID <> ""

 11.PNG

 

Reference link:

QUERY ODBC data source - only import data WHERE condition is true

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

thanks Xiaoxin, i tried your line with no luck, also tried a variation.. still no good

 

SELECT * FROM Administrator_Schema.MESSAGE WHERE EVENT_ID != ""

 

 

in the Query Editor, can i change this to filter on EVENT_ID? currently have below.

 

= Administrator_Schema{[Name="MESSAGE",Kind="Table"]}[Data]

 

any ideas?

HI @crichards,

 

>>i tried your line with no luck, also tried a variation.. still no good

I'd like to suggest you to modify formula at datasource side and copy the available query to sql statement box.

 

>>in the Query Editor, can i change this to filter on EVENT_ID? currently have below.

I don't think you can direct fitler on that step, it not include filter option.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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.