Skip to main content

Notifications

Community site session details

Community site session details

Session Id : oXnDhMn1AY/6uM4DzFueiK
Power Apps - Microsoft Dataverse
Answered

Clear all rows in a table in dataflow

Like (0) ShareShare
ReportReport
Posted on 13 Dec 2022 08:50:44 by 35

Hi, I'm running a dataflow which creates a large table (let's call it result table) from various data sources as basis for reporting. I plan to run this dataflow once a day.

 

Issue: When running the dataflow, all results are appended to the existing result table. However, I'd like to clear all rows of the result table before, but do not find a matching command in the transformation user interface.

 

Desired behavior: Clear all result table rows as part of the daily dataflow before re-filling it with the new rows.

 

Any hint is highly appreciated!

  • SZ-23070748-0 Profile Picture
    23 on 23 Nov 2023 at 11:08:47
    Re: Clear all rows in a table in dataflow

    I've been searching for it for such a long time!!!

    Thank you, @adgkred 🙂

  • UlricusR Profile Picture
    35 on 13 Dec 2022 at 22:02:23
    Re: Clear all rows in a table in dataflow

    Hi @adgkred , thanks for the reply, this could indeed be a solution. I will, however, try the approach suggested by @AhmedSalih , it’s the cleaner alternative. 

  • Verified answer
    AhmedSalih Profile Picture
    6,678 Super User 2025 Season 1 on 13 Dec 2022 at 13:46:53
    Re: Clear all rows in a table in dataflow

    Hello @UlricusR, you don't need to clear all the data if you have a primary key in your data source that won't change. Use the an Alternate key in your Dataverse table and make sure that use it in your mapping. This way when you run the dataflow, it will not create new records for those existing records with previous primary key, but it will change the other columns values if they have changed in the data source. It will also create new records for the new primary keys.

     

    Check this tutorial to see how we create Alternate key and how we map it. 

    https://powerplatformplace.com/f/excel-to-dataverse-migration---part-1

     

     

    If my reply helped you, please give a đź‘Ť , & if it solved your issue, please 👍 & Accept it as the Solution to help other community members find it more.


    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.


    Visit my Blog: www.powerplatformplace.com


     

     

  • Verified answer
    adgkred Profile Picture
    228 on 13 Dec 2022 at 13:28:23
    Re: Clear all rows in a table in dataflow

    Hey @UlricusR,

     

    I don't know if you can do it directly with the dataflow but here's an alternative solution:

    In Power Apps go to Advanced Settings > Settings > Data Management > Bulk Record Deletion

    Once there you can set up and schedule a daily bulk record deletion.

     

    Hope it helps 

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

#2
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

#3
CU07050602-0 Profile Picture

CU07050602-0 4

Overall leaderboard

Featured topics