I am looking for a minimal working example of using the “Q&A feature in Power BI” in a Dash app (or would like to know if this is even possible). The end goal right now is an app that shows the “Embedded view” from the provided link:
Currently, I obtain a similar result by doing the following. I created a Power BI report and only inserted the “Q&A” feature:
After publishing the report to the Power BI service, I grab the HTML for the report using the information in this link (under the heading “How to embed Power BI reports into portals”) and use it in a Dash app:
from dash import Dash, html
app = Dash()
app.layout = html.Iframe(src='https://app.powerbi.com/reportEmbed?reportId=redacted&autoAuth=true&ctid=redacted',
style={'height': '100vh', 'width': '100%'})
if __name__ == '__main__':
app.run_server(debug=True)
And this produces the intended result:
However, as I mentioned in the beginning, I’m trying to find out if there is a way in Dash of implementing the instructions from the “Q&A in Power BI embedded analytics” link. Any help would be appreciated. Thanks!