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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
DdanB
New Member

Custom Variables in Debug Visual

Do these work?  I've tried copying the sample from the barchart tutorial (https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/StaticObjects.md) yet the items i add  never appear under the "format" pane.  Am i missing something?  My capabilities.json looks like this (below) and i was expecting to see an 'Enable Axis' option under formatting on the right?  Apologies if i have missed something.

 

{
"dataRoles": [
{
"displayName": "Category Data",
"name": "category",
"kind": 0
},
{
"displayName": "Measure Data",
"name": "measure",
"kind": 1
}
],
"dataViewMappings": [
{
"conditions": [
{
"category": {
"max": 1
},
"measure": {
"max": 1
}
}
],
"categorical": {
"categories": {
"for": {
"in": "category"
}
},
"values": {
"select": [
{
"bind": {
"to": "measure"
}
}
]
}
}
}
],
"objects": {
"enableAxis": {
"displayName": "Enable Axis",
"properties": {
"show": {
"displayName": "Enable Axis",
"type": { "bool": true }
}
}
}
}
}
 

6 REPLIES 6
DdanB
New Member

Appears to be Power BI Service debug visual only, works if i package to desktop, sorry forgot to mention that.

Hey Ddan,

 

i got this failure too. It works to last Friday.

Do you try it with the normal sample example from here: https://github.com/Microsoft/PowerBI-visuals-sampleBarChart

 

That do not work for me.

 

Sometimes it helps to restart the Browser or the PBIVIZ.

 

Addendum: Do you implement the BarChartSettings and the  EnumerationObjectInstances Method?

 

Greetings Mcburn

Thanks Mcburn, yes  I've implemented them both.  Works ok if i package it and put it in desktop so i think its a debug visual thing.

@DdanB,

 

I see there is an open issue at https://github.com/Microsoft/PowerBI-visuals-tools/issues/43. You may give feedback at https://ideas.powerbi.com/forums/265200-power-bi as well.

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

In the moment i do not get the objects in dataViews[0].metadata.

 

But when i package my project i see the objects in the format frame, the objects are still empty.

It is the same failure with the example project.

 

Iam really confused on Friday everything was ok.

watching this as I have the same issue, any custom objects I can't get to show up

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.