Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

How do I create a button to perform "Reset to default"

Hi all,

 

I have a date range slicer however, I would like to enable my user to click a button and the date range slicer will reset it to a default date range.  Is this achievable in PBI?

 

thanks

  • Anonymous 

    the procedure is correct and should work. Can you try the following? Set the slicers to your default values and then go to the bookmark and select “update”. See if it solves it.

  • Anonymous's avatar
    Anonymous
    6 years ago

    Anonymous 

     

    Please try the same what PaulDBrown shared above.

     

    Along with that, can you confirm that clicking the button with 'CTRL' ?

8 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hello,

     

    However you can make it with 'Clear Selections' which is at the right top of the Slicer. Or if you particularly wants in the button, you can make it with Blank button & Bookmark features in PBI

     

     

  • PaulDBrown's avatar
    PaulDBrown
    Icon for Community Champion rankCommunity Champion

    Anonymous 

     

    Alternatively you can create a button from the button options in the main ribbon, create a bookmark with the default values and link the button to that bookmark. I do this all the time.

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi all,

      I tried the following way and my "reset to default" button did not reset back to the bookmark value in my visualisation. The following are my steps....

       

      Step 1:

      I set my slicer for the year range to 01/08/2017 to 31/08/2019 in the slicer.

      filter my desired bookmark range

      Step 2:

      I created a bookmark object 

      created a bookmark objectthe default object is named 3 yrs

      Step 3:

      I click on the "reset to default" button to assigned the bookmark object to this button.

       

      Step 4:

      I test it .. see following two steps testing

      I enlarged the date rangenext, i clicks the Reset button, but the date range did not go back to the bookmark range?

      The bookmarked date range is 01/08/2017 to 31/08/2019. 

      Despite I clicked the button, the slicer doesn't change to the bookmarked range and the total figure remain $12.4M and not $10.7M

       

      Have I missed out anything in my steps?

       

      Thanks,

      Tuff

       

       

       

      • PaulDBrown's avatar
        PaulDBrown
        Icon for Community Champion rankCommunity Champion

        Anonymous 

        the procedure is correct and should work. Can you try the following? Set the slicers to your default values and then go to the bookmark and select “update”. See if it solves it.