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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
nabilfx
New Member

Using Measure as X axis on line graph

Hi,
I am trying to build a Relative Margin Analysis on Power BI.
Here, in the line graph,  I want to use Rank (see the image below) instead of the Customer Name in order to squeeze the graph. Otherwise, the graph becomes quite big and requires a slider to navigate.
I've created the rank column as a measure, but I cannot put that as X axis instead of the Customer name. I've tried creating a similar column but it is not working.
I'd really appreciate your help on how I can use this ranking instead of Customer Name.
Thanks.

Screenshot 2025-01-26 190451.png

3 REPLIES 3
nabilfx
New Member

What do you mean by, "Modify your measure to return the value for each rank"?

Your measure needs to read the value of the disconnected table column (for example , 3) and then find out who has rank 3. etc.

lbendlin
Super User
Super User

Use a disconnected table that has all possible ranks in a column.  Use that column  for the x axis.  Modify your measure to return the value for each rank.

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.