Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
kyrpav
Helper V
Helper V

Highlighted selection does not filter across visuals -independent filters on each visual also exists

I can not find a better title. if someone can suggest something i will change it.

 

I have a table with 4 columns. Class, Year ,Student , Grade,

 

For 3 different classes (Math, Biology, Chemistry) i am creating a bar graph where on X axis i have Year and in values i have Grade as average of all students.

 

So for these 3 visuals on the Filter panel i have added the Class and i have filtered them with different selection of one different Class for each visual.

 

When i select on any visual a Year i was expecting that this will highlight the same year in the other visual. What it does is that it unhilights at the rest visual everything and gives zeros to the values.

 

I understand that each visual is filtered with some class and when i select year 2020 in visual for Math then the rest visuals have no data cause these are filtered for other classes.

 

How can i make this work  without external slicers? 

1 ACCEPTED SOLUTION

@kyrpav 

You will need to write measures that override any filter on the class.

Avg Math = CALCULATE(AVERAGE(Sheet1[Grade]),Sheet1[Class]="Math")
Avg Chemistry = CALCULATE(AVERAGE(Sheet1[Grade]),Sheet1[Class]="Chemistry")
Avg Biology = CALCULATE(AVERAGE(Sheet1[Grade]),Sheet1[Class]="Biology")

The top 3 are your old style, the bottom 3 use the new measures:

jdbuchanan71_0-1594303258861.png

 

View solution in original post

10 REPLIES 10
jdbuchanan71
Super User
Super User

If you have the Year field in the legend you can click on just the year rather than the bar with is the combination of the year and class.

jdbuchanan71_0-1594245535954.png

 

I am using a function to automatic color the bars so i can not use legeng. Any other possibility?

Do you have the year on an axis?  If so you can click on the axis label rather than one of the bars.

Year is on X axis. Selecting on the year itself or on the bar has no difference i get the same result. As i said it seems that when i select the year of the graph i am not filtering only for year the rest visuals but for year and specific class. And there the rest of the visuals have no values.

Can you share a picture of your graph?

I could also sent the pbix but i do not know how to insert it to the response.

 

So no selection all bargraphs:

 

kyrpav_0-1594247886702.png

 

And when i select 2019 in Chemistry's bargraph:

 

kyrpav_1-1594247987336.png

 

 

 

You can upload your file to OneDrive or DropBox and share the link here.  When you click on the year in 1 chart are you just wanting it to highlight the same year in the other charts?

Yes exactly i select the year in barchar and then it should highlight the same year in other 2 visuals

@kyrpav 

You will need to write measures that override any filter on the class.

Avg Math = CALCULATE(AVERAGE(Sheet1[Grade]),Sheet1[Class]="Math")
Avg Chemistry = CALCULATE(AVERAGE(Sheet1[Grade]),Sheet1[Class]="Chemistry")
Avg Biology = CALCULATE(AVERAGE(Sheet1[Grade]),Sheet1[Class]="Biology")

The top 3 are your old style, the bottom 3 use the new measures:

jdbuchanan71_0-1594303258861.png

 

Anonymous
Not applicable

Hi @kyrpav ,

 

Click format>edit interactions,would you see the "highlight "icon:

Annotation 2020-07-09 174022.png

Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.