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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Using column headings as x axis on graph

Hi everyone,

 

I have a table and the columns in questions are calculated columns:

1) Students cohort a, 2) Students cohort b, 3) Students cohort c 4) Students cohort d

 

I want to create a bar graph that has these 4 columns as x axis headings, after a little searching on this forum I found that I have to create the calculated columns in query and then unpivot.

 

I have done all the steps, however even after I unpivot, I still cannot get the column heading to be on the same x axis. I would like a little clarification on the steps if anyone has any idea,

 

1. I have created the calculated columns in query

2. I select the columns and then unpivot the columns

3. I then have an attribute column which has the column headings in as rows, however after this step I am then lost as the attribute column doesnt show up when I close and apply and I am in report view, so I am not sure as to how to get the visual to work?

 

Thank you in advance for the help

 

P x

1 REPLY 1
TomMartens
Super User
Super User

Hey,

 

can you please create a sample pbix that is based on an Excel file, upload both files to onedrive or dropbox and share the link.

 

Regards,

Tom



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.