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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
abdoumanni
New Member

How to concatenate several conditions to sum values

Hello community,

 i'm trying to solve a problem about how to concatenate several conditions, here is an exemple :

 

Data i have :

 Data 
DivisionAmount comments
Business partner200A
Costumer service100B (half amount is made also with A)
Call center150C (50 is made also with A)
Web80D
Total530 

 

Resultat i want :

 Amount 
Business partner300(50 made with Costumer service and 50 made with call center)
Costumer servuce100 
Call center150 
Web80 
Total630 

 

Thanks in advance

1 REPLY 1
jameszhang0805
Resolver IV
Resolver IV

@abdoumanni  If changing your comments from "B (half amount is made also with A) " to "B (50 is made also with A)
I can generate the result as your request. 
12.png

Your data source is too messy, I strongly suggest you let IT help clean the data before you start building the model and writing the measure.  I used PQ to split and clean your data source, and then write the DAX code to get the results, I don't recommend you analyze the data in this way, this is just like an exercise.
How to concatenate several conditions to sum value.pbix 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.