Forum Discussion
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?
Thanks, but this doesn't solve the problem.
I have ended up creating lots of measures and then arranging them in Cards as follows:
The slicers then all work.
I just can't help thinking this a very inefficient way of getting what I want.
10 Replies
- PIYUSHPRAJAPATI
Resolver I
Can you please provide the sample data because that would be give more idea....
- mscantle
Helper I
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.
- ravsha85Frequent 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] )
) - AnonymousNot 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 columnClose and apply and then ensure there is a relationship between two tables with Addmission Number
Create a matrix visualiztion and change the calculate to average
Use date column to create a slicer
Final outputBest regards,
Albert HeIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly