Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
I'm new to coding Power BI custom visuals. I have created a simple visual following the documentation available (which is very limited). I'm testing the visual on Power BI service and it looks fine. The only problem is I have to set or change all the options in the Format pane for the visual to show up. I'm setting default values for the options ad they show the same when I open the Format pane. But still, I have to change them all for the visual to work. I'm I missing anything? Please help!!
Solved! Go to Solution.
@v-viig I found the solution for the initial problem. I used if (options.dataViews[0].metadata.objects) check and it works fine now. I have a new issue. There is a "Revert to default" button in the format options. How to get make it work?
Note: I'm not using settings.ts. I'm initializing all the format options values in the constructor in visual.ts and assigning them in the enumerateObjectInstances function.
@satishr You can find the solution at this topic.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Create a new visual project with the latest API version, and then check "src/settings.ts" in it.
Thanks for the reply v-chuncz. Just setting the values for each format options in settings.ts doesn't work. These values should be loaded to the visual in visual.ts and I'm not able to do it.
@satishr Could you please describe the issue a bit deeper?
Are you changing the color but it returns to the default? Is that correct?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
@v-viig I found the solution for the initial problem. I used if (options.dataViews[0].metadata.objects) check and it works fine now. I have a new issue. There is a "Revert to default" button in the format options. How to get make it work?
Note: I'm not using settings.ts. I'm initializing all the format options values in the constructor in visual.ts and assigning them in the enumerateObjectInstances function.
@satishr You can find the solution at this topic.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 5 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |