Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Inserting streaming data into a static table

Hello Community ,
I have a requirement where i am using an api and it gives me a data of current date. What i was thinking that is there a way that i can insert these rows into a table .it's like copying the data of a streaming table  and inserting/appending it to a static table.

For example my api gives me a current day data and it comes to the streaming table and then i will send this data to my static table, Next day the api triggers again and truncate my streaming table and inserts that day's data and i want it to append in my static table so that i can have 2 days of data and so on.

  • Anonymous's avatar
    Anonymous
    6 years ago

    I have already used dataflow approach, what it does is it truncates the streaming table data and insert the new data which then i append it to another historical table.

5 Replies

    • Anonymous's avatar
      Anonymous
      Not applicable

      The api that i am using is not streaming ,it just gives me 1 record each day of that particular day,I just need to keep appending everyday records in 1 table to create an historical table

      • Anonymous's avatar
        Anonymous
        Not applicable

        It's a difficult scenario to work in a direct connection API->PowerBi. You probably need a layer in between to store this data in a database and then read all the rows in PBI.

        Remember that PBI works (typically) in "full load" everytime. You can't have "here is a piece of the new data, keep the old and add this". I've never used them but maybe dataflows might help you.