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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.