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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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.

Top Solution Authors
Top Kudoed Authors