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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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