Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Sign up nowGet Fabric certified for FREE! Don't miss your chance! Learn more
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
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 2 |