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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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