Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
1 year ago
Solved

Images not respecting size ratio in matrix when using repeat row headers

Hello, 

I am using a matrix where I have added Images as row header and and column is the size run.

When I repeat the row headers my images is not respecting the size ratio in matrix.



Can you help me out.

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi Anonymous ,

    Base on your description, it seems that the images in the matrix might not maintain their aspect ratio due to the way Power BI handles row header formatting. Could you please try the following methods and check if it can solve your problem?

    • Please make sure that your images have a consistent aspect ratio and size before importing them into Power BI.
    • Adjust image size manually: 1)Manually adjusting the size of images within the matrix; 2)Adjust the padding and spacing settings in the matrix visual.
    • Create a calculated column to fix the size of image and replace the original field with this calculated column
      AdjustedImage = "<img src='" & [ImageURL] & "' width='100' height='100'>"

    Best Regards

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Anonymous ,

    Base on your description, it seems that the images in the matrix might not maintain their aspect ratio due to the way Power BI handles row header formatting. Could you please try the following methods and check if it can solve your problem?

    • Please make sure that your images have a consistent aspect ratio and size before importing them into Power BI.
    • Adjust image size manually: 1)Manually adjusting the size of images within the matrix; 2)Adjust the padding and spacing settings in the matrix visual.
    • Create a calculated column to fix the size of image and replace the original field with this calculated column
      AdjustedImage = "<img src='" & [ImageURL] & "' width='100' height='100'>"

    Best Regards