Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Hide some values in Slicer

Hi Experts,

 

I need a help, I have Actuals and Plan data.

 

In the actuals i have 2018 and 2019 data only, but in the plan i have 2018, 2019 and 2020. I have appended the actuals and plan into one table (all columns are same)

 

So, what I want to show it is, in the plan visualization the year selection should be 2018,2019 and 2020, but when it comes to actuals visualization the year selection should be 2018 and 2019 (current and previous year) only.

 

How to do that, please help me.

 

Regards,

Swamy

 

 

  • Hi Anonymous 

    Create a year table

    year table = SELECTCOLUMNS(GENERATESERIES(2018,2019,1),"year",[Value])

    Create relationship as below

    Best Regards
    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

7 Replies

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

    This is possible. Have you tried to put the year in slicer?

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi,

       

      Yes, but I want to see only current and last year (2018 & 2019), do not show the future year (2020)

       

      How to do that?

      • PattemManohar's avatar
        PattemManohar
        Icon for Community Champion rankCommunity Champion
        Please provide some sample test data that can be copied to suggest an accurate solution.
  • PattemManohar's avatar
    PattemManohar
    Icon for Community Champion rankCommunity Champion

    Anonymous Please try using the date field in the Visual level filter (In this case, it is slicer) and then use "Relative Date Filtering" to last 2 years either Years or Calendar Years based on your requirement. 

     

    Note - In your slicer you will be using the "Year" value only (from the date hierarchy)

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi Manohar,

       

      I do not have date field in my data.

       

      Please some example, so that i can work out and try.

       

      Regards,

      Swamy

  • v-juanli-msft's avatar
    v-juanli-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous 

    Create a year table

    year table = SELECTCOLUMNS(GENERATESERIES(2018,2019,1),"year",[Value])

    Create relationship as below

    Best Regards
    Maggie

     

    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.