Forum Discussion

Nahid_SJ's avatar
Nahid_SJ
New Member
5 months ago

Power BI Embedded: How to Create Another Clone with Cleared Default Filters and Slicers?

I’m using Power BI Embedded in my web application with an embed token that allows users to edit reports from the frontend.

Here is the current workflow:

  • A user clicks the Edit button in the application.
  • The backend calls the Clone Report API to create a copy of an existing report.
  • The cloned report is embedded in edit mode using the embed token.
  • The user can modify the report (add visuals, drag fields, add filters/slicers, etc.).
  • The user then saves the report after making changes.

Now I want to extend this process.
After the user saves the edited cloned report, I want to automatically create another clone of that edited report, but with all filters and slicers cleared, even if the user has set default slicer or filter selections in the edited report.

So essentially the flow would be:

Original Report
↓
Clone #1 → User edits and saves (may contain default slicers/filters)
↓
Clone #2 → Same report structure but with cleared/default filters & slicers

Goal:
The second clone should have the same visuals and report structure, but no default filter or slicer selections applied, regardless of what the user configured in the edited report.

Questions:

  • Is it possible to clone a report while clearing slicer/filter states?
  • If not directly possible via the Clone Report API, what would be the recommended approach to achieve this?
  • Is there any way to reset slicer/filter state programmatically before creating the second clone?

5 Replies

  • 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_SJ's avatar
      Nahid_SJ
      New 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-msft's avatar
        v-nmadadi-msft
        Community 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

  • Hi Nahid_SJ 

    I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.


    Thank you.

  • Hi Nahid_SJ 

    May I check if this issue has been resolved? If not, Please feel free to contact us if you have any further questions.


    Thank you