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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
pankajkatariya
Frequent Visitor

Power BI Custom Visualization - Don't Summarize option for Measures

I am developing custom visual in where in I want to set MEASURE to Don't Summarize by default.

Now in my visual all measures are set to Count.

 

Can anyone help, on how to configure same in capabilities.json or any other file.

1 REPLY 1
v-diye-msft
Community Support
Community Support

Hi @pankajkatariya ,

 

The dataRoles allow essentially three kinds of behaviours for fields (Grouping, Measure and a combination of the two). All will basically aggregate to the lowest specified level of grain without some kind of lower-grain field to prevent aggregation. This is the same as Power BI internally and creates challenges if you need the most atomic level of data by default.

One way around this is to introduce a 'grain' field to ensure that your dataViewMapping does not aggregate to a higher level than you want your visual to manage. A couple of custom visuals that use this pattern are Box and Whisker Chart and Violin Plot (both of which need all available data to generate distribution statistics). This is also something that Charticulator does in its custom visual export to ensure that all data rows are fed into the visual.

Hopefully this gives you some ideas Smiley Happy

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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