3D Models Visuals in Power BI

Hello,

I’m trying to visualise interractive 3D revit models in Power BI. I was thinking about Embeding speckle Viewer inside Power BI report (to achieve something similar o the image below). Is it possible? Or, does someone have an Idea about How or where to start from?

Thank you so much!t

1 Like

Hi @yousra_kadcha!

I’m not a user of PowerBI, but I can think of 2 different routes to go about this:

Easy: You can use the “embed viewer” functionality we just added to the speckle server, this includes some functionality like section box/ viewing selection metadata, etc… I’m guessing powerBI allows you to use iframe content such as google maps, etc… but I’m not sure if this is true. If it doesn’t, you’d have to go for the less easy option.

Check the embed viewer instructions here → Notion – The all-in-one workspace for your notes, tasks, wikis, and databases.

Less Easy: Our viewer is published as an npm package that you can use freely, although this will not come with any of the “pre-made” toolbar with selection, section-box, etc… and you’d have to code that yourself. This will allow to integrate better, but I’m not sure what are powerBI’s limitations around this.

The docs on the viewer are still WIP, but you can find the package here. Also, if you’re looking an example app where it’s used, you can find a Vue.js component that uses the viewer here.

Hope any of these options work!

1 Like

Thank you so much for your suggestions. I’ll try them and keep you updated.

1 Like

Great! Let us know how it goes, as we’d be super interested in having your feedback on how speckle and powerBI play together :slight_smile:

1 Like

Hi @yousra_kadcha ,

Quick note to say that I have tried following using this tutorial, it works but then I get some auth errors because of the embedding. It should be something relatively easy to fix on our end…

We’ll keep you posted!

2 Likes

Hey again,
so I have tested the easy option (embeding speckle viewer in power Bi report using HTML viz) but the stream does not appear. the page keeps loading (see the screenshot below)


I have tested the Speckle iframe in an html page and it worked perfectly

I think that the problem is with the power BI custom viz (but I cannot figure it out). If anyone did please let me know.

Hey @yousra_kadcha! Thanks for checking this out! Not sure what could be happening there, but it sounds like PowerBI is being picky with our embed feature.

Could you try and open the Chrome Developer Tools and send us a screenshot of any errors that may appear in the Javascript Console? It would help us a lot with pin-pointing the issue and if there’s anything we can do on our side we’ll be happy to include it in our upcoming tasks.

1 Like

Hey @AlanRynne Thanks for your quick reply. Here’s what I get as an error


I do think that “Uncaught DOMException: Failed to read the ‘localStorage’ property from ‘Window’: The document is sandboxed and lacks the ‘allow-same-origin’ flag.” is responsible of this.

2 Likes

Great! Thanks a lot, I’m not the expert on this things so I’ve opened an issue for it in our server repo.

Feel free to keep an eye on it if you want, but we’d let you know on this thread when we’ve fixed it too!

2 Likes

Hi @yousra_kadcha! Just jumping back in this thread to let you know we’ve fixed the issue that was causing the embed viewer to not load in restricted places (such as PowerBI).

This will be included in the release we’ll be doing this week, so stay tuned :slight_smile:

As for more “interactive” PowerBI visuals, we’ve already started looking into it and we’ll be releasing the first WIP this week too!

2 Likes

I’ve just seen the announcement in LinkedIn and came to recheck this post to see if it was already ready to use. Thank you so much for having fixed it!

3 Likes