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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Top Kudoed Authors