This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
I use API 2.3.0
{
"dataRoles": [
{
"displayName": "Category",
"name": "Category",
"kind": "GroupingOrMeasure"
},
{
"displayName": "Value1",
"name": "Value1",
"kind": "GroupingOrMeasure"
},
{
"displayName": "Value2",
"name": "Value2",
"kind": "GroupingOrMeasure"
}
],
"objects": {
"category": {
"displayName": "Category ",
"properties": {
"show": {
"displayName": "Turn on/off",
"type": {
"bool": true
}
},
"fontColor": {
"displayName": "Font Color",
"description": "Select font color",
"type": {
"fill": {
"solid": {
"color": true
}
}
}
}
}
}
},
"dataViewMappings": [
{
"table": {
"rows": {
"select": [
{
"for": {
"in": "Category"
}
},
{
"for": {
"in": "Value1"
}
},
{
"for": {
"in": "Value2"
}
}
],
"dataReductionAlgorithm": {
"sample": {
"count": 2000
}
}
}
}
}
]
} const settings: VisualSettings = this.visualSettings ||
VisualSettings.getDefault() as VisualSettings;
var visualObjects: VisualObjectInstanceEnumerationObject = <VisualObjectInstanceEnumerationObject> VisualSettings.enumerateObjectInstances(settings, options);
return visualObjects; In update method I add Solved! Go to Solution.
Hello,
You should check the following documentation pages:
https://microsoft.github.io/PowerBI-visuals/docs/concepts/capabilities/
https://microsoft.github.io/PowerBI-visuals/docs/concepts/dataviewmappings/
https://microsoft.github.io/PowerBI-visuals/docs/concepts/objects-and-properties/
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]
I can't help with the majority of what you're asking, but regarding your question about metadata.objects not always being present - in my experience, this is only populated if a property is different to its default value, i.e. modified by the end-user. If your visual has not have any properties modified from the defaults then this will be empty.
The framework will assume the default values (typically specified in your settings.ts) if this is not present for any objects defined. The following code in your post is handling that part:
const settings: VisualSettings = this.visualSettings ||
VisualSettings.getDefault() as VisualSettings;
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Thanks, I've noticed it duration same time.
Hello,
It is necessary to analyze the source code to make some suggestion. Could you please share the repo link or send files to [email protected] for analysis?
Thanks!
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]
I found the problem, It was the cache issues.
Also, do you know where I can find full documentation about capabilities.json?
Hello,
You should check the following documentation pages:
https://microsoft.github.io/PowerBI-visuals/docs/concepts/capabilities/
https://microsoft.github.io/PowerBI-visuals/docs/concepts/dataviewmappings/
https://microsoft.github.io/PowerBI-visuals/docs/concepts/objects-and-properties/
Evgenii Elkin,
Software Engineer
Microsoft Power BI Custom Visuals
[email protected]
Ok, thank you.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |