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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
v-shex-msft
Community Support
Community Support

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

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors