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! Request now

Reply
PipManifold
New Member

Use data modeling to group three columns so they act as one field

Hello

 

We are trying to find if there is a way to group columns together in my data which contain the same group of values so that each cell retains it individual value, however the three columns present as one field in Power BI.

 

Here is the situation. We run a tutoring program and we ask the student what is the reason they have come. They select from the following set options, however, because a student usually comes for multiple reasons they can select up to 3 and this populates 3 columns in our spreadsheet.

• Understand of course content

• Assignment help

• Exam preparation

• Study skills advice

• Time management advice

 

We want to be able to show the total number of students which came for X reason not just the total of the first column.

 

We also have the same issue with wanting to combine our tutor data. Our tutors can tutor up to 3 subjects and these once again are the same set of value types (physics, maths, chemistry, engineering, etc) across 3 columns (subject selection 1, subject selection 2, subject selection 3) and we would like to be able to firstly see how many tutors we have for each subject and to see who those tutors are and how busy they have been. This would once again involve being able to group the three columns while each value remained distinctive.

 

Any help would be greatly appreciated.

 

Pip

1 ACCEPTED SOLUTION

Thanks everyone for all your help. Unpivot and then making sure to select count distint for my values in the visualisation seems to have done the trick 🙂

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@PipManifold , difficult so say without looking at data

Can you share sample data and sample output in table format?

 

refer if these can help

https://radacad.com/pivot-and-unpivot-with-power-bi
Transpose : https://yodalearning.com/tutorials/power-query-helps-transposing-data/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Thanks everyone for all your help. Unpivot and then making sure to select count distint for my values in the visualisation seems to have done the trick 🙂

HotChilli
Super User
Super User

Sample data would help,

however, it looks like you want to unpivot the columns that hold the reasons.

 

You can then write a measure to count the students

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