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 / General Question on Lo...
Power Automate
Answered

General Question on Loop with data extraction via URL

(0) ShareShare
ReportReport
Posted on by 46

I manage to use flows to extract data for Bitcoin and put them into a Excel with a table and plot, as seen below:

tanthiamhuat88_0-1717854367667.png

with its flows:

tanthiamhuat88_1-1717854418390.png

Now, I want to have BOTH Bitcoin and Ethereum data and its plot, how should the flows be modified?

I have tried the below flows, but it seems not to be the ideal, and I would appreciate from the experts' advice.

tanthiamhuat88_2-1717854844429.pngtanthiamhuat88_3-1717854876407.png

 

tanthiamhuat88_4-1717854909829.png

and its Excel table output as below:

tanthiamhuat88_5-1717854982653.png

I would want the Excel to have one row for each timing for both Bitcoin and Ethereum, how should my flows be modified?

Thanks.

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,136 Super User 2025 Season 2 on at

    Hi @tanthiamhuat88 

     

    Ok so the ethereum price should part of bitcoin price right - as shown below

    Nived_Nambiar_0-1717917968408.png

     

    But i could see the timings are different i meant DateTime 

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • tanthiamhuat88 Profile Picture
    46 on at

    yes, I need both BTC and ETH to be on the same datetime for each row.

  • Verified answer
    rzaneti Profile Picture
    4,376 Super User 2025 Season 2 on at

    Hi @tanthiamhuat88 ,

     

    Here is an example of solution that can solve your problem. 

     

    For this example, I'm working with this Excel table:

    rzaneti_4-1718215480976.png

     

    To simulate your API calls, I'm creating two variables for each of the cryptos, containing an ID, a date/time timestamp and a price: 

    rzaneti_0-1718214661260.png

     

    After that, you will be working with only one loop. I chose to loop the priceA array, but you can map any of the arrays returned by Yahoo Finance. Inside the loop, add a "Filter array" action, using the API response from the other crypto (in my case, priceB array) as input:

    rzaneti_1-1718214875569.png

     

    For the "Filter array" condition, set:

    - For the left side, this expression: item()['DateTime'] - make sure to change "DateTime" for the name of the actual date property

     - For the center dropdown, set as "is equal to"

    - For the right side, this expression: items('Apply_to_each_-_PriceA')['DateTime'] - make sure to change "DateTime" for the name of the actual date property, and the Apply_to_each_-_PriceA for your actual loop name.

     

    After that, you can use the "Add a row into a table" action: 

    rzaneti_2-1718215271550.png

     

    To populate it, I'm using the following expressions:

    - For DateTime (highlighted in yellow): item()['DateTime']make sure to change "DateTime" for the name of the actual date property

    - For PriceA (highlighted in green): item()['price']make sure to change "price" for the name of the actual price property

    - For PriceB (highlighted in blue): body('Filter_array')?[0]?['price']make sure to change "price" for the name of the actual price property

     

    After running the flow, this is the final result in the Excel table:

    rzaneti_3-1718215437048.png

     

    Let me know if it works for you!

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#1
trice602 Profile Picture

trice602 339 Super User 2025 Season 2

#3
David_MA Profile Picture

David_MA 270 Super User 2025 Season 2

Last 30 days Overall leaderboard