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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register 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/

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.