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.

BUG: Visual Clone is not a clone

I am having issues with the powerbi-js-api client. I want to create a clone of a simple pivot table visual.

 

visual.clone();

But the clone visual doesnt shows the same data at all. the parent/original visual is working fine.

This is not only for one visual in one specific report! I've several reports with this issue!

I've also tried to clone the visual's and setting all parameters including filters through the clone constructor.

ICloneVisualRequest

 But this also didn't work.

 

 

 

Status: New
Comments
v-qiuyu-msft
Community Support

Hi @Muesli

 

I would suggest you create a support ticket to let engineers look into the issue on your side. 

 

Support Ticket.gif

 

Best Regards,
Qiuyun Yu

Marco57
Helper III

@Muesli 

@v-qiuyu-msft 

Can you detail more your code? I am trynig to create a clone of a visual and I do not even have the clone created at all. I am using V3 api of the power bi client:

 let cloneLayout = {
      layout: <pbi.models.IVisualLayout> {
        x: slicerVisual.layout.x + slicerVisual.layout.width + 1,
        y: slicerVisual.layout.y + slicerVisual.layout.height * .5 - this.deleteFilterButtonVisual.layout.height * .5,
        width: 60,
        height: 60,
        displayState: {
          mode: pbi.models.VisualContainerDisplayMode.Visible
        }
      },
      autoFocus: false,
    };

let deleteVisual = await this.deleteFilterButtonVisual.clone(cloneLayout);

in the console I can see properly that I get my new visual created:

 

Marco57_0-1612283712389.png

 

Still I can't see anything about my visual on the report. I also tried cloning other visuals and still same issue.

Is that the same issue you have here?