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 to Combine an inde...
Power Automate
Unanswered

How to Combine an index column and a select array

(0) ShareShare
ReportReport
Posted on by 19

Hey all,

 

I have a flow which creates an array using the range function to use as an index

 

npinot2002_0-1708531386547.png

I put it in a select statement, and now I want to add it as a column to another select statement derived from Power BI Data

npinot2002_2-1708531597388.png

 

I'd prefer a solution that does not use Apply to Each. Here's how I want the data to be formatted

 

Power BI Data 1Power BI Data 2Power BI Data 3New Row
---1
Categories:
I have the same question (0)
  • Verified answer
    v-yueyun-msft Profile Picture
    on at

    Hi , @npinot2002 

    According to your description, you want to add an index column from your output of the "Run a query against a dataset", this is my test data and the end result in the "Select" action:

    vyueyunmsft_0-1708580877544.png

    And this is my test flow:

    vyueyunmsft_1-1708581018549.png

    outputs('Run_a_query_against_a_dataset')?['body/firstTableRows']?[item()]?['PowerBIData[Title]']
    outputs('Run_a_query_against_a_dataset')?['body/firstTableRows']?[item()]?['PowerBIData[Country]']
    outputs('Run_a_query_against_a_dataset')?['body/firstTableRows']?[item()]?['PowerBIData[Cost]']

    item()

     

    If this reply can help you , you can click mark this reply as solution (Accept solution) which can help more people, thanks in advance! 

     

    Best Regards,

    Yueyun Zhang

     

     

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