Forum Discussion

molegris's avatar
molegris
Icon for Advocate IV rankAdvocate IV
2 years ago
Solved

How to replace image in the NATIVE image visual ?

Hi, I have reports with many images using the native image visual and I need to update the images. Considering that those visuals are heavily customize (titles, sous-titles, properties, formats, etc...
  • molegris's avatar
    molegris
    2 years ago

    Hi Anonymous ,

    Thank you for your answer but I've tried working with zipped pbix files before and it's VERY unstable.  I think that's actually why MS came up with the new save as project feature (the .pbip format).

     

    The save as project (.pbip) is what I actually used to accomplished the work I needed to do in the usecase I described in my original post. To be honest, it wasn't that hard because I'm a computer engineer and I'm familiar with ALM and CI/CD concepts. I just often found myself frustrated when I see things that should have been designed for average non-IT employees and were not!

     

    In anyway, in case someone has a similar problem and reads this post, here's how I did it :

     

    1. Open your report (.pbix) in Power BI Desktop.  Go to Save as, then select the option Save as project (*.pibp).  Close Power BI Desktop.
    2. At the location you saved the .pbip file, you'll also find a gitignore file and two folders ; one for semantic and one for report.


    3. In the report folder, navigate to \myReport.Report\StaticResources\RegisteredResources.  You'll find your images there.  You can replace the image files here but keep the same names.
    4. Then go back to where the .pbip file is saved and double click.  It will open the project and take into account the changes you made in RegisteredResources.
    5. You can then go to File>Save as>PBIX... Done!  you now have a report (pbix) with your need images.  N.B. Some fine tuning might be required, especially if your new images are not exactly of the size as the old ones

     

    --mo