- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@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/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

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
Subject | Author | Posted | |
---|---|---|---|
07-23-2024 03:43 AM | |||
08-23-2024 06:00 AM | |||
03-07-2024 08:21 PM | |||
05-26-2024 08:54 PM | |||
03-08-2024 02:41 PM |
User | Count |
---|---|
141 | |
115 | |
84 | |
63 | |
48 |