cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
secondImage

Happy New Year from Power BI

This is a must watch for a message from Power BI!

December Update

Check it Out!

Click here to read more about the December 2020 Updates!

Community Blog

Check it Out!

Click here to read the latest blog and learn more about contributing to the Power BI blog!

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

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