Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
wilson_smyth
Post Patron
Post Patron

incorrect rowcounts when using flow and streaming data

Im using Flow to capture survey data from a microft O365 form and save it to a sql database table.

Im then using streaming data in PowerBI to display this data in Powerbi.

The problem is my rowcounts in PowerBI are completely wrong.

I need help figuring how to make this work.


Each time a form is submitted the flow kicks off.

1. it saves the data to a database table.

2. it gets all records from that table.

3. it puts these rows into the RealtimeData table of my powerBi Streaming dataset.

For the first entry in the table, everything looks ok.

On submitting a second form, my rowcount in RealtimeData is now 3.

On submitting a third form, my rowcount in realtimeData table in PowerBi is now 9.


Its clear that powerBi is appending the same records to end of the RealtimeData table each time the flow runs.

 

Problem is im unsure how to ensure the RealtimeData table is emptied on each run of the Flow.

 

Appreciate any advice on how to fix this

 

 

2 REPLIES 2
Anonymous
Not applicable

Hi @wilson_smyth,

 

I'd like to suggest you pause your flow and try again, it is hard to ensure the calculation of history data of live streaming dataset.

BTW, it also appears on other calculation(first,last) which other users mentioned but I can't reproduce.

 

Regards,

Xiaoxin Sheng

Hi.


thanks, but that doesnt solve the issue.
Its down to the fact that teh "RealTimeData" table needs the historic flag set to true in order to store data, and the flow is adding all records from the table each time. the "realTimeData" table is getting the same dataset over and over.

 

I have since learned that  i need to access the powerbi API and empty the dataset.

theres a demo of how to do this here, by Konstantinos Ioannou which explains it fantastically. Its a lot of effort however, when the flow shape could simply have a check box that says "empty dataset before adding rows" or something similar.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.