Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
markefrody
Post Patron
Post Patron

Concatenated Sum Not Adding Up

Hi everybody!

 

I have this table:

markefrody_0-1683274891740.png

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):

markefrody_1-1683275294474.png


I'm expecting this output below:

markefrody_2-1683276363441.png


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



1 ACCEPTED SOLUTION
v-yueyunzh-msft
Community Support
Community Support

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:

vyueyunzhmsft_0-1683514921128.png

 

 

 

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

View solution in original post

4 REPLIES 4
markefrody
Post Patron
Post Patron

@v-yueyunzh-msft, I just noticed. It does not copy the Carrier correctly.

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

v-yueyunzh-msft
Community Support
Community Support

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:

vyueyunzhmsft_0-1683514921128.png

 

 

 

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 thank you for your solution. Works like a charm!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.