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! Learn more

Reply
mscantle
Helper I
Helper I

Power BI table with rows filtering a dataset

I have a dataset of values for academic performance of high school students in various subjects (Maths, English, Science, etc).

Each student belongs to one or more key groups (eg Male, Female, Special Needs, etc).

I want to create a table that has a row for each key group of students, and columns showing the average scores those students achieved in each subject.

What would be the best way to achieve this?

1 ACCEPTED SOLUTION

Thanks, but this doesn't solve the problem.

I have ended up creating lots of measures and then arranging them in Cards as follows:

mscantle_0-1718025966901.png

The slicers then all work.

I just can't help thinking this a very inefficient way of getting what I want.

View solution in original post

10 REPLIES 10
Anonymous
Not applicable

Hi @mscantle ,
Based on the data you provided, I did the following, and you can try to see if these steps meet your requirements
Let's Start with reverse perspective:
Open power query and choose both Gender and Special Need column and click unpviot column

vheqmsft_0-1717642870907.png

Close and apply and then ensure there is a relationship between two tables with Addmission Number

vheqmsft_1-1717642946526.png

Create a matrix visualiztion and change the calculate to average

vheqmsft_2-1717643023820.png
Use date column to create a slicer
Final output

vheqmsft_3-1717643085444.png

 

Best regards,
Albert He

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

 

 

ravsha85
Frequent Visitor

@mscantle  you can try to create a Summarized table based on the Inputs you have 

 

SummaryTable =
SUMMARIZE (
'StudentTable',
'StudentTable'[KeyGroup],
"Maths Avg", AVERAGE ( 'StudentTable'[Maths] ),
"English Avg", AVERAGE ( 'StudentTable'[English] ),
"Science Avg", AVERAGE ( 'StudentTable'[Science] )
)

 

Thanks ravsha85 - this looks like a good solution. How would I add multiple KeyGroups?

Based on your table structure I have created a sample , you could use the drill down approach to see it based on each keygroup

 

ravsha85_0-1717431137369.png

 

Sorry, but where is this visualization?

@mscantle  Pls use Matrix Visual and let me know if you still face any issues

Thanks, but this doesn't solve the problem.

I have ended up creating lots of measures and then arranging them in Cards as follows:

mscantle_0-1718025966901.png

The slicers then all work.

I just can't help thinking this a very inefficient way of getting what I want.

Thanks, but this isn't quite what I need.

Here's a sample of the grades we collect for the students (we do this several times per year):

mscantle_0-1717510819245.png

Here's a sample of the student group information we have:

mscantle_1-1717510857994.png

I would like something that averages the grades for each group that looks like this:

mscantle_2-1717511024403.png

However, I also want to slice it by date (2023a, 2023b, etc)

 

Sorry if this is way different to my original description, but if you can help, that would be amazing.

PIYUSHPRAJAPATI
Resolver I
Resolver I

Can you please provide the sample data because that would be give more idea....

 

Unfortunately, as the data is sensitive, I can't give you the data. However, I have two tables. One contains details about the students (name, gender, special need, etc), and another table containing the exam results for each student in each subject. The tables are linked using the admission number of the students (a unique identifier). I don't know if this is enough to help you understand the problem, but thanks for trying.

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