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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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