Forum Discussion
Matrix column headers misaligned in Power BI Service (renders correctly in Desktop)
- 4 months ago
Quick follow-up to my previous post — I figured out what was causing the issue and wanted to share in case anyone else runs into this.
Root cause: I'm using empty Spacer measures (Spacer = BLANK()) between column blocks in my matrix as visual separators. When the column width gets narrow and Word Wrap is enabled on column headers, the empty Spacer headers wrap to two lines. This makes the entire header row taller than the body rows, which causes the visible misalignment in the Service. Power BI Desktop renders this differently and didn't show the issue.
Fix that worked: Turn text wrap on Column headers level off + make Spacer columns wider so they render on a single line.
Hope this helps someone else.
Quick follow-up to my previous post — I figured out what was causing the issue and wanted to share in case anyone else runs into this.
Root cause: I'm using empty Spacer measures (Spacer = BLANK()) between column blocks in my matrix as visual separators. When the column width gets narrow and Word Wrap is enabled on column headers, the empty Spacer headers wrap to two lines. This makes the entire header row taller than the body rows, which causes the visible misalignment in the Service. Power BI Desktop renders this differently and didn't show the issue.
Fix that worked: Turn text wrap on Column headers level off + make Spacer columns wider so they render on a single line.
Hope this helps someone else.