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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
sreddy47652
Helper III
Helper III

Merging two different columns based on selection

Hi Team, I have two seprate columns like Fee payment(No Payment required-Single event, One of Payment, Not applicable, other), Amount fields. When i select in dropdown as other i want to concatanate other+Amount(It should show like "Other 50$") same way when i select Fee payment as "one of payment" it should show only "one of payment"(No concatation required). How to concate two columns based on drop down selection in power bi, i need only concatanate when user select as other.

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

Hi @sreddy47652 ,

 

Whether the advice given by @johncolley  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

View solution in original post

2 REPLIES 2
v-henryk-mstf
Community Support
Community Support

Hi @sreddy47652 ,

 

Whether the advice given by @johncolley  has solved your confusion, if the problem has been solved you can mark the reply for the standard answer to help the other members find it more quickly. If not, please point it out.


Looking forward to your feedback.


Best Regards,
Henry

johncolley
Solution Sage
Solution Sage

Hi @sreddy47652 , You can accomplish this using the SWITCH function in a new column, please see an example below:

 

Combined = 
var paymenttype = 'Column condition merge'[Fee Payment]
var amount = 'Column condition merge'[Amount]
var result =  SWITCH(
    TRUE(),
    paymenttype = "Other", COMBINEVALUES(" - ", paymenttype, amount),
    paymenttype)
    Return
    result
johncolley_0-1662695704649.png

 

If this answer solves your problem please mark it as a solution!

Helpful resources

Announcements
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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.