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

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.

Reply
Anonymous
Not applicable

Custom Visual deployment

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.

 


CustomVisual.jpg

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Finaly found out why. 

You have to bind it to some value of the datasource, regardles if you use the datasource or not.

View solution in original post

6 REPLIES 6
v-viig
Community Champion
Community Champion

Looks like data fields are not filled properly. Did you fill all of data fields?

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Anonymous
Not applicable

Not sure I understand you reply. Which data fields do you mean?

 

/Frode

Anonymous
Not applicable

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?

image.png

 

Anonymous
Not applicable

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).

v-viig
Community Champion
Community Champion

No, it is not supported.

 

Ignat Vilesov,

Software Engineer

 

Microsoft Power BI Custom Visuals

pbicvsupport@microsoft.com

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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