Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Line Chart sort x-axis by y-axis

Hi    I have a table consiting of Sellers, MFGs and Partnumbers.  It looks like so: _____________________________ Id1 | Seller1  | MFG1 | Part1 Id2 | Seller2  | MFG2 | Part1 Id3 | Seller3  | MF...
  • Icey's avatar
    Icey
    6 years ago

    Hi Anonymous ,

     

    How about add a Rank column in your table, like so:

    Rank column =
    RANKX (
        'Table',
        CALCULATE (
            DISTINCTCOUNT ( 'Table'[MFG] )
                + SUM ( 'Table'[ID] ) / 10000,
            ALLEXCEPT ( 'Table', 'Table'[Seller] )
        ),
        ,
        DESC,
        DENSE
    )
    

     

    Then, create the bar visual with "Rank column".

     

    Best Regards,

    Icey

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.