Handling long Base 64 URLs in Power BI
Last updated
Last updated
If the images are displaying partially in Power BI with the Base 64 URLs, then the reason is the character limit in Power BI. The maximum length of a text value that the Power Query engine can load into a single cell in a table in a dataset is 32,766 characters – any more than that and the text will be silently truncated.
To understand what the length of the Base 64 URLs for your images is, please follow the below steps:
Select the Base 64 column of the image
Add column → Extract → Length
You will now be able to see the length of the Characters of all the Base64 URLs
Ensure that the data type of the Base 64 URL column must be "Text"
Open the Advanced Editor of the same query for the next set of steps:
Click on Advanced Editor
Copy and paste the below code in the existing steps:
Note: Ensure to replace LastStepName with the name of the last step that you see in the Advanced Editor before pasting this code
The final query should look something like as shown below:
Create the below DAX measure to display the images
Add the DAX measure in the Performance Flow visual and display the images