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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
SushmaMudayappa
Regular Visitor

Custom Connector for PowerBi to enable limit clause support.

Hi Team,
I have designed a custom connector which supports native query, now I would like to add support for limit clause. I have done changes refering to this Parameters for the Odbc.DataSource function - Power Query | Microsoft Learn but I still dont see the Limit clause getting appended to the query I pass.
FYI: 

Added this piece of code in .pq

AstVisitor = [
            LimitClause = (skip,take) =>
                  if (skip > 0) then error "Skip/Offset not supported"
                   else
              [
                Text = Text.Format("LIMIT #{0}", {take}),
                Location = "AfterQuerySpecification"
              ]
        ],


Could you suggest what changes needs to be added to make it work as expected.

SushmaMudayappa_0-1696600349111.png

 

1 REPLY 1
SushmaMudayappa
Regular Visitor

Can someone please respond.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.