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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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