Forum Discussion

ccyangdi's avatar
ccyangdi
Microsoft Employee
6 years ago
Solved

Setting default for Slicer

We are using Slicer in Power BI Desktop. The data source for the slicer is a list of existing builds, which is updated from time to time.   The user want the slicer to always select latest 3 builds...
  • v-gizhi-msft's avatar
    6 years ago

    Hi,

     

    According to your description, i think you can not set default select for slicer, but i have a workaround.

    Here is my test sample in SQL Server:

    Then add an index column in Query Editor.

    After Apply&Close, add this index as a filter to the table visual, it shows:

    When i add data in SQL Server:

    Click Refresh function in Power BI Destop, it shows the latest three rows:

    If you want to filter other data, you can still use slicer after removing this Index filter.

    Hope this helps.

     

    Best Regards,

    Giotto Zhi