Forum Discussion

nabilfx's avatar
nabilfx
New Member
1 year ago

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.

3 Replies

  • 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.

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

    • lbendlin's avatar
      lbendlin
      Super User

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