Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi,
For some reason, the very first call to my visual's update does not populate the options argument with any dataViews (and thus no data), but on subsequent calls it does. The first call also seems to have a different "type"; 62 instead of 2, although what this means I have no idea (Even the API docs don't mention a "type" property!).
In my update method I simply do a console.log(options), and this is what's produced after several updates (the top one is irrelevant):
As you can see, there's something different about the first call.
Here's my capabilities.json, I think it's structured correctly:
{ "dataRoles": [ { "displayName": "Solution areas", "name": "solutionAreas", "kind": "Grouping" }, { "displayName": "Pillars", "name": "pillars", "kind": "Grouping" }, { "displayName": "Statuses", "name": "statuses", "kind": "Grouping" }, { "displayName": "Names", "name": "names", "kind": "Grouping" } ], "dataViewMappings": [ { "table": { "rows": { "select": [ { "for": { "in": "solutionAreas" } }, { "for": { "in": "pillars" } }, { "for": { "in": "statuses" } }, { "for": { "in": "names" } } ] } } } ] }
Any ideas what could be causing this? This is a brand new project so I haven't tinkered with anything really, just capabilities.json and the update method.
Thanks.
Solved! Go to Solution.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 |