Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
I am trying to build a Python library that can read PBIR and DIM files, specifically for manipulating Power BI reports. I noticed that those are all json format. My goal is to easily copy visuals from one report to another using Python code.
I haven't come across any open-source libraries for this purpose yet. Additionally, I'm finding it difficult to understand the visual configuration files and the various options for Power BI's default visuals (e.g., bar, grid, etc.). I’m wondering if there is a schema available that I could use to convert these configurations into a generic Pydantic dataclass.
I work at a Microsoft partner company, and we need to streamline the process of building Power BI reports quickly. If I've missed any articles or resources related to this topic, please feel free to point me to them.
Thank you!
""" example of what I am thinking
Solved! Go to Solution.
Hi, @edwardlee4948
As you mentioned, I have not found any open-source Python libraries specifically for handling PBIR and DIM files.
However, I discovered a project on GitHub called pbir-utils, which provides some useful functions for managing and manipulating PBIR metadata. I hope this is helpful to you:
GitHub - akhilannan/pbir-utils: A tool for managing Power BI Enhanced Report Format (PBIR) projects
Secondly, regarding obtaining visual objects, you can try the following JavaScript content:
let pages = await page.getVisuals();
For more details, please refer to:
Get pages and visuals in a Power BI embedded analytics application | Microsoft Learn
VisualDescriptor class | Microsoft Learn
Finally, you can also try the following third-party software to obtain visual object information:
Power BI Reporting Best Practices Analyzer - Microsoft Fabric Community
Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @edwardlee4948
As you mentioned, I have not found any open-source Python libraries specifically for handling PBIR and DIM files.
However, I discovered a project on GitHub called pbir-utils, which provides some useful functions for managing and manipulating PBIR metadata. I hope this is helpful to you:
GitHub - akhilannan/pbir-utils: A tool for managing Power BI Enhanced Report Format (PBIR) projects
Secondly, regarding obtaining visual objects, you can try the following JavaScript content:
let pages = await page.getVisuals();
For more details, please refer to:
Get pages and visuals in a Power BI embedded analytics application | Microsoft Learn
VisualDescriptor class | Microsoft Learn
Finally, you can also try the following third-party software to obtain visual object information:
Power BI Reporting Best Practices Analyzer - Microsoft Fabric Community
Of course, if you have any new discoveries or questions, please feel free to get in touch with us.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
10 | |
5 | |
4 | |
4 | |
3 |
User | Count |
---|---|
14 | |
9 | |
5 | |
5 | |
4 |