Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi.
I have created my custom visual. Added it to a report in https://app.powerbi.com/ and debuged it there.
All ok.
Now it's time to add the visual to a report in PowerBI.
I created a package using pbiviz package.
Validating the package using pbiviz validate, all green, except warning "New API version is used".
Imports successfully the .pbiviz file into my report.
My visual have a strange default image and my visuals custom properties are not there etc.
To eliminate potentials PowerBI desktop problem, I publish my report.
The report in app.powerbi.com is there, and my custom visual is just as weird as in PowerBi desktop.
I then edited the report. Removing my custom visual. And added the pbiviz file to the report in PowerBi.com. Also added the debug version.
Picture below shows the .pbiviz version on top, and the debug version below.
I'm kind of stuck on this one so I'll appreciate any help.
Thanks.
Solved! Go to Solution.
Finaly found out why.
You have to bind it to some value of the datasource, regardles if you use the datasource or not.
Looks like data fields are not filled properly. Did you fill all of data fields?
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Not sure I understand you reply. Which data fields do you mean?
/Frode
This is strange.
Creating a brand new visual with these commands
pbiviz new stockVisual
cd stockVisual
pbiviz package
pbiviz start
No code is changed at all.
Opens powerBi.com and create a new report.
Adds the debug visual
Adds a new visual from the package dist\stockVisual.pbiviz.
Below is the result.
The debug visual are on the left, the stockVisual.pbiviz are on the right.
Why does not the stockVisual.pbiviz work?
Finaly found out why.
You have to bind it to some value of the datasource, regardles if you use the datasource or not.
Is there any option to leave data fields empty and eventually remove dataRoles from capabilities.json ? I am working on a totally static visual that doesn't need any data besides that entered with objects (Format tab).
No, it is not supported.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
12 | |
2 | |
2 | |
1 | |
1 |