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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mthsdiniz
Frequent Visitor

Retention Policy for PowerBI Rest API not working

Hello guys,

 

I'm trying to use the PowerBI Rest API to create a live connection that update's the data everytime a new register is added on my oracle database...

 

I've created a streaming dataset with the "Historic Data Analisys" on, although i'm having trouble with the retention policy of this dataset.... Reading the Rest API documentation is said that the standard Retention Policy is FIFO, which would delete the first rows whenever i tried to push data into a 200k rows + dataset, although my dataset already contains 523627 rows and is causing me troubles limitind my push requests to 120 an hour.

 

Does anyway knows how to set / verify my retention policy or how to execute a DELETE action on this type of dataset?

 

Thanks!

 

DataSet2.JPGDataSet.JPG

CountIDNumber.JPG

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @mthsdiniz ,

For use power bi rest api, you need to register on azure side first.

Register an Azure AD application to use with Power BI

Then you need to find out correspond guid of your dataset.(you can navigate to that dataset to find out this key)

Regards,

Xiaoxin Sheng

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @mthsdiniz ,

AFAIK, REST API not able to effect streaming dataset records.(they not real stored in dataset tabels)
If you turn on Historic option, power bi will record history data from streaming dataset, you can try to use 'Datasets Delete Rows' API to remove these history records.

Push Datasets - Datasets DeleteRows

Regards,

Xiaoxin Sheng

Hey @Anonymous , 

 

I tried to use this command but the powershell says that this command is not recognized as the name of a cmdlet...

 

DELETE : The term 'DELETE' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

 

I'm using power bi through my Organization (Cargill), so i do not have any Organization admin rights on power bi, i only have a premium workspace, although if admin rights are needed i can chat with the team responsible for that.

 

What should i do?

Anonymous
Not applicable

Hi @mthsdiniz ,

For use power bi rest api, you need to register on azure side first.

Register an Azure AD application to use with Power BI

Then you need to find out correspond guid of your dataset.(you can navigate to that dataset to find out this key)

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.