Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
twmy0
Frequent Visitor

Show image by slicer

Hi All,

 

I have a report that shows different projects with corresponding history, i.e. I have project 1-8, for project 1, I have all version in latest 1 year from Jan 2024 to Dec 2024, same for project 2 to project 8.

 

For each project & period selection, like project 1 in Feb 2024, there'll have around 25 pages include data, narrative and ideally image, the report format was the same among all.

 

All tables (normally 1 section in 1 table) link with 2 dimension tables, Project, and Calendar (in Year Month), so that corresponding data will be retrive.  A slicer (chicklet slicer) was used in landing page and sync with other page so user can select which project and period report they wanna see as a control.

 

Issue: I want to show images (~15 images per report) dynamically in entire report when both report & period was chose by user.  Some image was big and was the cover of entire subpage, some are smaller with only half or 1/4 page.  Please note display the image as icon in tables was not a solution for me coz image was part of report instead of icon.

 

Try

- Change image link in base 64 and store in excel, with additional column include Yearmonth, project, section, unique image name. Upload to data model.  When relationship between both Calendar and Project tables were connected, no image can be shown (I use Image pro custom visual).  When no relationship was created, I can see the data but only show a very small top portion of image.

 

twmy0_0-1733598773512.png

 

- Can change image to HTML code and show by HTML 5 custom visual (in desktop), but only PBI certify visual can show in server.  HTML (lite version) seems can't show image.

 

Thanks a lot for your help. 

 

2 ACCEPTED SOLUTIONS
lbendlin
Super User
Super User

If your Base64 text is longer than 32K then you need to store it in chunks, and later stitch it back together.

 

https://blog.crossjoin.co.uk/2019/05/19/storing-large-images-in-power-bi-datasets/

View solution in original post

danextian
Super User
Super User

Hi @twmy0 

The Power Query engine can load text values up to a maximum of 32,766 characters into a single cell in a table. Text exceeding this limit will be silently truncated. Even if you use html viz but still refering to a base64 column, the image will still be truncated. Resize the image by either changing the resolution  or doing some loseless compression using websites like tinypng.com and then reconvert them back to base64.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

2 REPLIES 2
danextian
Super User
Super User

Hi @twmy0 

The Power Query engine can load text values up to a maximum of 32,766 characters into a single cell in a table. Text exceeding this limit will be silently truncated. Even if you use html viz but still refering to a base64 column, the image will still be truncated. Resize the image by either changing the resolution  or doing some loseless compression using websites like tinypng.com and then reconvert them back to base64.










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
lbendlin
Super User
Super User

If your Base64 text is longer than 32K then you need to store it in chunks, and later stitch it back together.

 

https://blog.crossjoin.co.uk/2019/05/19/storing-large-images-in-power-bi-datasets/

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.