microsoft / powerbi-jupyter

A Custom Jupyter Widget Library for Power BI
MIT License
471 stars 151 forks source link

Recover the value of a visual #49

Closed adama-hawa closed 2 months ago

adama-hawa commented 8 months ago

Hello,

Have you ever managed to recover the value of a visual please?

adama-hawa commented 8 months ago

Sorry, i use export_visual_data for this

KotanaSai21 commented 8 months ago

@adama-hawa, is this issue still relevant and do you need any help here?

adama-hawa commented 7 months ago

KotanaSai21 Yes, I'm having a bit of trouble filtering and displaying a visual of a report. I've written a code to complement yours but it doesn't work at the moment. If you've already done one, I'd like to use it as inspiration if possible.

v-MadhavC commented 3 months ago

To retrieve a list of all visuals on a specific page of your report:

visuals_on_page = report.visuals_on_page('Enter the name of the embedded report page here')
print(visuals_on_page)

To display the visual data of the report:

visual_data = report.export_visual_data(page_name, visual_name)
print("Visual Data: ", visual_data)

For more details, refer to the documentation: powerbi-jupyter/DOCUMENTATION.md at main · microsoft/powerbi-jupyter (github.com)

v-MadhavC commented 2 months ago

We are waiting for your response. If no response is received within the next couple of weeks, the issue will be closed.