Forum Discussion

markefrody's avatar
markefrody
Post Patron
3 years ago
Solved

Concatenated Sum Not Adding Up

Hi everybody!

 

I have this table:

I am trying to concatenate the "Carrier" + "Rail Car Count Sum" column and name the new column as "Legend : Total".
When I did this, it is showing me additional totals (kindly refer to below table):


I'm expecting this output below:


I'm unsure why it suddenly shows those additional rows. How can I modify the table similiar to my expected output?

I have uploaded the pbix file (here) so you can see the tables and DAX formula I am using.

Appreciate your kind assistance.

Best regards,
Mark V



  • Hi , markefrody 

    Thanks for your smaple .pbix file , for your need , i think the best way is to create a measure like this:

    Measure 2 = var _text1  =CONCATENATE( MAX('v_RailCarCountDaily'[Carrier]) , ":" )
    return
    CONCATENATE(_text1,[Rail Car Count Sum])

     

    Then we can meet your need:

     

     

     

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

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

4 Replies

  • Hi , markefrody 

    Thanks for your smaple .pbix file , for your need , i think the best way is to create a measure like this:

    Measure 2 = var _text1  =CONCATENATE( MAX('v_RailCarCountDaily'[Carrier]) , ":" )
    return
    CONCATENATE(_text1,[Rail Car Count Sum])

     

    Then we can meet your need:

     

     

     

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

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

    • v-yueyunzh-msft's avatar
      v-yueyunzh-msft
      Community Support

      Hi, markefrody 

      I'm sorry , i may use the wrong table name , you can use "v_RailCarCountDaily Combined".

      Measure 2 = var _text1  =CONCATENATE( MAX('v_RailCarCountDaily Combined'[Carrier]) , ":" )
      return
      CONCATENATE(_text1,[Rail Car Count Sum])

       

      Best Regards,

      Aniya Zhang

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