Forum Discussion
Venkat_Thota
1 year agoFrequent Visitor
How to Limit rows from Oracle source
I am connecting to oracle data source using a query. select col1, col2, col3....colN from Table group by col1,col2,col3...colN I am adding athe end 'fetch first 5000 rows only' to limit no of rows...
- 1 year ago
You can follow this synatx then:
let DEVQUery = "select * from some_table fetch first" & parameterName &"rows only", PRODQuery = "select * from some_table", Query = if parameterName = 5000 then DEVQUery else PRODQuery, Source = Oracle.Database(Server, [Query=Query]) in SourceFrom service you can change the parameter value to anything but 5000. then you will be able to to do the full load.
please be informed you need to keep the parameter data type as whole number.
Need a Power BI Consultation? Hire me on Upwork
Connect on LinkedIn
Did I answer your question? Mark my post as a solution! If I helped you, click on the Thumbs Up to give Kudos.
Proud to be a Super User!
lbendlin
1 year agoSuper User
Oracle driver or ODBC driver? Have you checked that the query folds?