Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Bar Chart - Same variable but multiple time in X-axis

I am a newbie in this Power BI software and downloaded two days back. Actually I have two columns, one is "Type" (nominal data) and the second one is "Speed" (numerical data/measure). Some Type can r...
  • v-lionel-msft's avatar
    6 years ago

    Hi Anonymous ,

     

    Unless you mark duplicate types separately, they will be aggregated.

    Column = 
    VAR x = 
    RANKX(
        FILTER(
            Sheet2,
            Sheet2[Type ] = EARLIER(Sheet2[Type ])
        ),
        [Speed], ,ASC, Dense
    )
    RETURN
    [Type ] & "(" & x & ")"

     

    Best regards,
    Lionel Chen

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