cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
emmasaunders
Regular Visitor

Custom visuals: applying filters to just one measure

Hello

I am creating a histogram custom visual. The idea is that two histograms will be overlaid: the population data will show at the back, and sample data (which is optional) will be overlaid in colour. The point is to be able to compare the shape of the distributions, even though the maximum frequencies will be different (since the sample is a subset of the population).

 

Screenshot 2019-11-13 at 15.45.54.png

At the moment I intend to have two measures (one optional) and one category in dataRoles. The two measures will be the same: score. But one measure needs to be filtered, and the other should remain unfiltered. The filter, at the moment, would be an on-page slicer.

 

Is there a way of suppressing the native filtering for one measure?

 

Or should I create one measure and one category, and the sample data shows automatically when the user filters? If so, how is best to store the population data? 

 

Thanks for any help. New to custom visuals!

Emma

0 REPLIES 0

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Kudoed Authors