Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I have a column of 130 or so rows that contain either A,B,C,D,E,F ... When I try to access the
Grouping is default behavior of Power BI.
The possible solution here is to add a Measure column to capabilities.json and put the main data column as Count of elements.
This solution will allow your custom visual to get how many items are there.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Thank you for your response. I am currently digging around for examples for what you are describing ... Currently, I have
Ok I think I have what you are describing.
{ "dataRoles": [ { "displayName": "Category", "name": "Category", "kind": "Grouping" }, { "displayName": "Values", "name": "Values", "kind": "Measure" } ], "dataViewMappings": [ { "table": { "rows": { "for": { "in": "values" } } } } ] }
Then in the Values Field, select the drop down and select Count. See attached screen shot as a reference.
Is there anyway to make the Count automatically occur?
Also, with the previous workflow ... all of the null or missing fields do not receive a count and it is part of the requirements.
Thank you for help !!
As far as I know, there's no way to use Count by default.
Regarding null issue. It seems you should turn on "Shows items with no data":
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Thank you for the help.
The null value appears when you are just displaying the field.
But, the null value dissappears when you apply Count to the field.
Please see screenshots as a reference.
Looks like it's limitation of categorical data view mapping.
We'd recommend that you should try table view mapping out.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
I am using table view mapping.
Power BI doesn't support Count aggregation for null values.
You might propose an idea to support Count for null values.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.