Ok Thank you. I have one more doubt, what should I use instead of powerbi.embedNew()?
We are using embed.New() for Replacing the current embedded report with new one on same page.
To add a new embedded object into a div that already contains a exisitng embedded object, i have been using this code.
powerbi.reset(embedContainer); powerbi.embed(embedContainer, config);