Forum Discussion

srinutamada's avatar
srinutamada
New Member
10 years ago

Change legend value label name in Line and Clustered Column Chart

Hi All,

 

I am currently working on PowerBI report and I am using line and clustered column chart. I am able to represent data the way I wanted. But I want to change the label name for line (currently line will draw based on sum of request column) from "Count of Requests" to "User Requests". I want a custom label name instead of default label that is being named based on type of column and operation. So could you please help how to modify line chart label in the display.

 

Regards,

Srinu Tamada

7 Replies

  • Eric_Zhang's avatar
    Eric_Zhang
    Microsoft Employee

    srinutamada

     

    AFAIK, there's no way to change the label name, in your case, to get a custom label name, you can use a measure instead.

     

    User Requests = COUNTROWS(request column)
    
    OR
    
    User Requests = SUM(request column)
    • srinutamada's avatar
      srinutamada
      New Member

      Thanks for your response.

       

      It's not a simple count, its more like "count(sals) and group by area". So this solution didn't work.

       

      • Eric_Zhang's avatar
        Eric_Zhang
        Microsoft Employee

        srinutamada wrote:

        Thanks for your response.

         

        It's not a simple count, its more like "count(sals) and group by area". So this solution didn't work.

         


        srinutamada

         

        Can you be more specific? A measure can work according to the groups.

  • GaryO's avatar
    GaryO
    Frequent Visitor

    srinutamada Did you come up with a solution for this?

    I would like to do something similar i.e. change the legend value label name.

  • Gags's avatar
    Gags
    Frequent Visitor

    HI..maybe this has been solved already but for anyone who ran into the same issue this is how it works:
    In the visual settings rename the fields for the y-axis column and line in the wells.

    After that the legend shows the changed values.

    Cheers,

    Gags