Forum Discussion

hiren89vora's avatar
hiren89vora
Frequent Visitor
2 years ago
Solved

Default slicer selection which changes with every time when a new data is loaded

I have 12 quarters of data in slicer, need a dynamic slicer which will select default 2022 Q4, 2022 Q3 and 2021 Q4 and other quarters should be visible and user can select those if required.

 

2020 Q1

2020 Q2

2020 Q3

2020 Q4

2021 Q1

2021 Q2

2021 Q3

2021 Q4

2022 Q1

2022 Q2

2022 Q3

2022 Q4

 

And everytime if new quarter is uploaded to the data, then the slicer should change the selection (current, prior, prior year same quarter)

  • Daniel29195's avatar
    Daniel29195
    2 years ago

    hiren89vora 

    if you create create a column, 

    that will contains date values, +  ( current, prior, prior year same quarter as  text ) > 

     

    so you will have a column in your table with the following values : 

     

    date_modeled 

    2021-q1 

    2022-q2

    2022-q3

    2022-q4

    ...

    current quarter

    prior year same quarter

    prior quarter .

     

     

    now, you can drag this column to the slicer, and choose the last 3 as pre selecteed. 

     

     

     

5 Replies

    • hiren89vora's avatar
      hiren89vora
      Frequent Visitor

      nope, i need the selected quarter to be visible rather than default, and also i need past quarter visible too but not selected.

      • Daniel29195's avatar
        Daniel29195
        Community Champion

        hiren89vora 

        if you create create a column, 

        that will contains date values, +  ( current, prior, prior year same quarter as  text ) > 

         

        so you will have a column in your table with the following values : 

         

        date_modeled 

        2021-q1 

        2022-q2

        2022-q3

        2022-q4

        ...

        current quarter

        prior year same quarter

        prior quarter .

         

         

        now, you can drag this column to the slicer, and choose the last 3 as pre selecteed.