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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
DemingPDCA
Helper II
Helper II

Create a string that "compounds" based on conditional statements

I need to create a string that compounds based on if there is a value in the column. 

 

I have a table that has a different column for each course (if they have completed the course there is a 1 in that field, if not its blank). I would like to create a column that can immediately show all the courses the user has not completed.  For this user it would show: 

 

MTA506, MTA507, MTA508, MTA509, etc etc.  (these end up being broken down into sections MTA501 - 505 & 506 - 510 & etc, I just cant figure out the overall logic)

DemingPDCA_5-1672864772821.png

 

DemingPDCA_4-1672864755496.png

 

Any suggestions? I think prefer it be in one field due since it will be in sections and only show for people in process of that secton anyway, so I can easily fit it on the current dashboard, but I'm open if there's a better way to do it!

 

Thanks!

 

4 REPLIES 4
grandtotal
Resolver III
Resolver III

@DemingPDCA , you need to unpivot the course columns.

Check out this:

https://support.microsoft.com/en-us/office/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f5882...


The best way may be the 'unpivot other columns' option: select the non course columns and unpivot other.

 

if I do that - it makes a row for each course - right? I would want all of them on 1 row. 

You are both correct. It will make a row for each course in the table in your model. However, you can still put them all on a row in a matrix visual as a single field.

you can do it on visualization but you have to unpivot the data table.

if you post a sample dataset (PFP Check table) we can help you to better understand.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.