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
datawhale
New Member

Convert rows from multiple columns into a single column

I have the following table:

 

1.png

 

I would like to create a single column from the three columns (good, caution, critical) only for value 'b'. The result should be like:

 

2.png

(note: id and id_1 are identical)

1 ACCEPTED SOLUTION
Padycosmos
Solution Sage
Solution Sage

2 REPLIES 2
Padycosmos
Solution Sage
Solution Sage

Padycosmos_0-1673389165384.png

Hope this helps

vicky_
Super User
Super User

This should get you started - just add more if conditions (or use switch) to add in the rest.

 

Table 2 = SUMMARIZE('Table', 'Table'[id], "status", IF(CONTAINSSTRING(VALUES('Table'[good]), "b"), "Good") )

 

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.

Top Solution Authors