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

Filtering by slicer. Is it possible to keep an overall mean line in the line plot?

Hi!

 

I'm making a line plot where I can choose different categories by a slicer. Is it possible to keep an overall mean line the plot when a choose a specific category to compare with the total?

 

Regards Marit

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Helper I
Helper I

Re: Filtering by slicer. Is it possible to keep an overall mean line in the line plot?

Thank you for your answear. I am not sure if I explained my self enough. I have noticed that when I have bar plot and choose one category, the result within that category is shown with a darker coloured bar, and the overall result for all categories is shown with ligther color at the same bar. Is this possible with a line plot as well? For example with a dashed line for the overall result for all categories, and solid line for the result within selected category?

 

Furthermore, I have one page with synchronised slicers. Must the slicer be at the same page to show both overall result and within category result? I seems like that with the bar plots.

 

Best regards

Marit

 

 

 

 

View solution in original post

3 REPLIES 3
Highlighted
Super User V
Super User V

Re: Filtering by slicer. Is it possible to keep an overall mean line in the line plot?

Hi @Marit 

 

You can add an extra Measure like 

Measure = 
CALCULATE(
    AVERAGE( 'Table'[Column1] ),
    ALL()
)

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn



Highlighted
Helper I
Helper I

Re: Filtering by slicer. Is it possible to keep an overall mean line in the line plot?

Thank you for your answear. I am not sure if I explained my self enough. I have noticed that when I have bar plot and choose one category, the result within that category is shown with a darker coloured bar, and the overall result for all categories is shown with ligther color at the same bar. Is this possible with a line plot as well? For example with a dashed line for the overall result for all categories, and solid line for the result within selected category?

 

Furthermore, I have one page with synchronised slicers. Must the slicer be at the same page to show both overall result and within category result? I seems like that with the bar plots.

 

Best regards

Marit

 

 

 

 

View solution in original post

Highlighted
Community Support
Community Support

Re: Filtering by slicer. Is it possible to keep an overall mean line in the line plot?

Hi @Marit 

Create a measure

all cate = CALCULATE(AVERAGE('Table'[value]),ALL('Table'[category]))

Capture3.JPGCapture4.JPG

the slicers on the Page1 can only affect visuals on Page1.

If you want a filter to affeact all pages, please add the column into "Report level filters".

 

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.

Helpful resources

Announcements

August Community Highlights

Check out a full recap of the month!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Top Solution Authors