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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.