Forum Discussion
Power BI Embedded: How to Create Another Clone with Cleared Default Filters and Slicers?
Hi Nahid_SJ
Thanks for reaching out to the Microsoft Fabric Community forum.
When using the Power BI Clone Report API, the cloned report is an exact copy of the source, including its report definition and any saved filter or slicer states. The API does not offer an option to clear or override slicer or filter selections during cloning. This means that any default slicer or filter selections in the original report will also appear in the clone.
If you want to create a cloned report without the filters you should first clone that report and then change filters dynamically using Power BI JavaScript SDK, you can call methods like await page.updateFilters(models.FiltersOperations.RemoveAll); to clear filters before saving. In conclusion, since the Clone Report API copies the current state of the report, programmatically clearing filters is the best ways to ensure the cloned report does not contain unwanted filter selections.
Use filters in a Power BI embedded analytics report | Microsoft Learn
Use slicers in Power BI embedded analytics | Microsoft Learn
I hope this information helps. Please do let us know if you have any further queries.
Thank you
- Nahid_SJ5 months agoNew Member
Thanks for the valuable information. Based on your information, i just changed by business requirement and solve internally . Thanks for the information .
- v-nmadadi-msft5 months agoCommunity Support
Hi Nahid_SJ ,
We really appreciate your efforts and for letting us know the update on the issue.Please continue using fabric community forum for your further assistance.
Regards