Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How can I create a dynamic table range in power automate?

(0) ShareShare
ReportReport
Posted on by 20

Hi All - I am trying to create a flow that automatically create a dynamic table range.

 

Based on my research I should be able to use this formula:

OFFSET(Incentive_KPI_TL!B2,0,-(N - 1),SUBTOTAL(103,Incentive_KPI_TL!$B:$N),12)

 

My data from paginated reports contains data starting from column B through N and after adding the above in Table range it generates an error : 

 

The argument is invalid or missing or has an incorrect format and status code 400:

 

jhauw_0-1690854028056.png

And my actual create table step is below:

 

jhauw_1-1690854078601.png

Thank you in advance for anyone who can assist.

 

 

  • LeeS Profile Picture
    31 on at
    Re: How can I create a dynamic table range in power automate?

    Yes it does, I have been using it for years in combination with COUNTA as well to dynamically size a table

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: How can I create a dynamic table range in power automate?

    Hi @jhauw ,

     

    You just need to use the function of Flow to combine a string similar to 'A1:B2'.

    For example, assuming that the length of the dynamic table depends on the number of records in an array, the formula can be written like this:

    vbofengmsft_2-1690856055398.png

    A1:B@{add(length(variables('theArray')),1)}

    vbofengmsft_3-1690856075828.png

     

     

     

    Best Regards,

    Bof

  • jhauw Profile Picture
    20 on at
    Re: How can I create a dynamic table range in power automate?

    Thanks @v-bofeng-msft - do you have any article to show how to do dynamic range in a flow at all? Or it is not possible to do it in the flow?

  • v-bofeng-msft Profile Picture
    on at
    Re: How can I create a dynamic table range in power automate?

    Hi @jhauw ,

     

    OFFSET is just an excel function , it will not work in a flow.

     

    I think this link will help you  a lot:
    https://learn.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functions-reference

     

     

    Best Regards,

    Bof

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492