cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

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

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Hide some values in Slicer

Hi @Swamy3105 

Create a year table

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

Create relationship as below

Capture7.JPG

Capture5.JPGCapture6.JPG

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.

View solution in original post

7 REPLIES 7
Highlighted
Solution Sage
Solution Sage

Re: Hide some values in Slicer

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

Highlighted
Super User I
Super User I

Re: Hide some values in Slicer

@Swamy3105 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)





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Helper III
Helper III

Re: Hide some values in Slicer

Hi Manohar,

 

I do not have date field in my data.

 

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

 

Regards,

Swamy

Highlighted
Helper III
Helper III

Re: Hide some values in Slicer

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?

Highlighted
Super User I
Super User I

Re: Hide some values in Slicer

Please provide some sample test data that can be copied to suggest an accurate solution.




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Highlighted
Solution Sage
Solution Sage

Re: Hide some values in Slicer

Before appending two tables, put additional column on each using M query. 

Actual table, add custom column,

Custom = "Actuals"

Plan Table, add custom column,

Custom  = "Plan" 

Then append them like what you did.

 

on the page filter pane, drag the custom column and check only the actuals.

Highlighted
Community Support
Community Support

Re: Hide some values in Slicer

Hi @Swamy3105 

Create a year table

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

Create relationship as below

Capture7.JPG

Capture5.JPGCapture6.JPG

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.

View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors