Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Insert rows question

Hi,

 

I am calling an API and retrieving 1 value, however I want to keep this value in a longer list.

So not actually 1 insertrow, but every e.g. 5 minutes, getting the latest value and add this to the list of old values.

 

I have 2 challenges:
1. how can I insert a new record every time?

2. eventually I can schedule this, or in Power Query schedule as well, but first point 1! 🙂 

 

e.g.:

Current list/table:

123

456

789

 

New value: 521

 

New list:

123

456

789

521

 

5 mins later, new value: 172

 

New list:

123

456

789

521

172

 

etc.

So I need to store the old value and 5 minutes later (or with refresh) store the new value.

I was trying this in Excel with PowerQuery, but maybe PowerBi is better doing this?

 

10 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      In PowerQuery you can schedule the query every x mins, so you would suggest using that?
      Any idea how? 

      • BA_Pete's avatar
        BA_Pete
        Super User

        Hi Anonymous ,

         

        Try having a look through the link I provided to see if it is right for your scenario. It also expains how to do it.

        It's the only way I know of to get Power BI to add new snapshot data onto an existing historical dataset.

         

        Pete