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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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