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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.