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.
Hi. I really appreciate anyone who can take a look at this.
My question is how to show the enumerationObject in the format pane.
I am working on learning how to add custom field formatting in the format pane, just like the Multi KPI example. So I downloaded this visual from github and started to read and test the code. But after I ran sudo pbiviz start, I found the field formatting was blank, as shown in the graph. I didn't do any modification on the original code. But, if I ran sudo pbiviz package and import the packed file to powerbi, the field formatting had something.
The code to add field formatting in the Multi KPI example:
public enumerateObjectInstancesWithSelectionId(
options: powerbi.EnumerateVisualObjectInstancesOptions,
displayName: string,
selectionId: powerbi.visuals.ISelectionId,
enumerationObject: powerbi.VisualObjectInstanceEnumerationObject = {
containers: [],
instances: [],
},
😞 powerbi.VisualObjectInstanceEnumerationObject {
if (this.areOptionsValid(options)) {
const { objectName } = options;
const selector: powerbi.data.Selector = selectionId && selectionId.getSelector();
this.addSettingsToContainer(
objectName,
displayName,
ColorHelper.normalizeSelector(selector),
enumerationObject,
this.getSettings(this[objectName]),
);
}
return enumerationObject;
}
Get blank field formatting after running pbiviz start:
Non-blank field formatting after importing the packed file
Hi @Anonymous,
Unfortunately this can't be done at present. The MS visuals have some special kind of allowance that makes the drop down work correctly and either building them locally or trying to create your own doesn't work the same way.
There's an issue open in the GitHub project for this and currently has no ETA. A few of us have been waiting some time for it 😞
Not the answer you were hoping for, I'm sure, but might at least confirm you were thinking along the right lines... just not something that's actually fully implemented in the SDK...
Regards,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)