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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Angela_Rom
Helper I
Helper I

Is there a way to format a table visualization to show column headers next to values?

I am attempting to recreate a report within Power Bi. I am trying to format the table visualization to mirror the PDF verison of the report but I cannot figure out if there is a way to place column headers next to values. I am looking into formatting options but I do not see anything that would allow me to change the column header to be alongside the value. Please see the examples provided below and let me know if there is anything that I can do in order to produce the formatting that I would like to have in my report.

 

How it is formatted currently in Power Bi.JPGExample of how it is in the report.JPG

 

 

1 ACCEPTED SOLUTION

I had to add an additional field into the column field and alter the table view so that it would show only the information but the workaround resulted in capturing the format view I wanted.

 

 

View solution in original post

4 REPLIES 4
RMDNA
Solution Sage
Solution Sage

Unless I'm misinterpreting your issue and Greg has it down:

 

What are the column headers for the two columns? If you format your data in a way that "status," "flag," etc. are an "Attribute" column and the values belong to a "Value," just use a table or matrix visual to get what you want.

 

1.PNG

If your data is formatted with "status," "flag," etc. as their own columns, just unpivot the table.

 

Pivoted.PNGunpivot.PNG

The attributes are individual columns. I see how you unpivoted the table but I tried this and it would not go through. I think there is too much data in my query. All these columns are values for a stock number. I did use the matrix table and formatted it in a way in which the rows are alongside the values but now the last row is not visible. Does anyone know how to resolve this issue?

 

Power Bi Formatting.JPG

I had to add an additional field into the column field and alter the table view so that it would show only the information but the workaround resulted in capturing the format view I wanted.

 

 

Greg_Deckler
Community Champion
Community Champion

Well, you could create an enter data query like:

 

Column1,Sort

status,1

flag,2

last date,3

date,4

inspect,5

code,6

desdate,7

 

Set your Sort By column to Sort for Column1. Put Column 1 in a table visual. Then create a measure like:

 

Measure 5 = 
SWITCH(
    MAX([Column1]),
    "status",MAX(Table6[status]),
    "flag",MAX(Table6[flag]),
    BLANK()
)

Put that in your table. Obviously, you will have to make that measure match your data and what you are trying to do.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

Top Kudoed Authors