web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How can I create a dyn...
Power Automate
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.

 

 

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    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

  • jhauw Profile Picture
    20 on at

    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?

  • Verified answer
    v-bofeng-msft Profile Picture
    Microsoft Employee on at

    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

  • LeeS Profile Picture
    31 on at

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

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 267 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 196

#3
Haque Profile Picture

Haque 182

Last 30 days Overall leaderboard