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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How can I create a dyn...
Power Automate
Unanswered

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
    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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard