Forum Discussion
Tracking student progress using Rank?
- 1 year ago
Ok let me rethink and update
Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos! - 1 year ago
Try this
#### 1. **Load Data into Power BI**
- **Import your dataset** by clicking "Get Data" and choosing your source (e.g., Excel or CSV).
- **Ensure the data types** are correctly set for each field, especially `Assessment Date` as Date and `Assessment Value` as Number.
#### 2. **Create Measures for Score Calculation**
- **Average Score per Stage**: This helps to calculate and display the average score for each assessment stage.
```DAX
AverageScore = AVERAGE('Table'[Assessment Value])
```
- **Score Comparison (Improvement or Decline)**: You can create a measure to show the difference between assessment stages (e.g., from "Initial" to "Review") for each student.
```DAX
ScoreDifference =
CALCULATE(
SUM('Table'[Assessment Value]),
'Table'[Assessment Stage] = "Review"
)
-
CALCULATE(
SUM('Table'[Assessment Value]),
'Table'[Assessment Stage] = "Initial"
)
```
#### 3. **Create Ranking for Students by Assessment Scores**
Ranking helps to understand student performance relative to others within the same stage.
```DAX
Rank =
RANKX(
FILTER(
'Table',
'Table'[Assessment Stage] = EARLIER('Table'[Assessment Stage])
),
'Table'[Assessment Value],
,
DESC,
DENSE
)
```
#### 4. **Create Visuals in Power BI**
- **Line Chart for Score Trend (Average Scores per Stage)**:
- **X-Axis**: `Assessment Stagee
- **Y-Axis**: `Average Score measure
- This chart will help visualize the change in average scores across assessment stages.
- **Table for Individual Student Progress**:
- Include `Student ID`, `Assessment Stage`, `Assessment Value`, and `Rank`.
- You can also add the **ScoreDifference** measure here to directly show progress or decline for each student.
#### 5. **Add Conditional Formatting for Score Progress**
- To highlight improvements or declines, you can apply conditional formatting to the `ScoreDifference` column (e.g., green for improvement and red for decline).
#### 6. **Slicer for Filtering by Student or Quarter Code**
- Add slicers for `Student ID` or `AS Quarter Code` to allow interactive filtering so you can track individual student progress or focus on specific assessment criteria.
Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!
Steps to Track Student Progress and Visualize Scores in Power BI
Load Data into Power BI:
Open Power BI Desktop.
Click on “Get Data” and select your data source (e.g., Excel, CSV).
Load your data into Power BI.
Data Preparation:
Ensure your data types are correct (e.g., Assessment Date as Date, Assessment Value as Number).
Create Measures for Average Scores:
Go to the “Modeling” tab and create a new measure for the average score by assessment stage:
AverageScore = AVERAGE('Table'[Assessment Value])
Create a Rank Measure:
Create a measure to rank students based on their scores within each assessment stage:
Rank =
RANKX(
FILTER(
'Table',
'Table'[Assessment Stage] = EARLIER('Table'[Assessment Stage])
),
'Table'[Assessment Value],
,
DESC,
DENSE
)
Create Visuals:
Line Chart for Average Scores:
Add a line chart to your report.
Drag Assessment Stage to the X-axis.
Drag the AverageScore measure to the Y-axis.
Table for Detailed Scores and Ranks:
Add a table visual.
Drag Student ID, Assessment Stage, Assessment Value, and the Rank measure to the table.
Format and Customize:
Customize the visuals with titles, labels, and colors to make them more informative and visually appealing.
Example DAX Code
Here’s a summary of the DAX code you might use:
-- Measure for Average Score
AverageScore = AVERAGE('Table'[Assessment Value])
-- Measure for Ranking Students
Rank =
RANKX(
FILTER(
'Table',
'Table'[Assessment Stage] = EARLIER('Table'[Assessment Stage])
),
'Table'[Assessment Value],
,
DESC,
DENSE
)
Visuals in Power BI
Line Chart: This will show the trend of average scores across different assessment stages.
Table: This will display individual student scores along with their ranks within each assessment stage.
Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!
Thank you saud968 , this has helped me to rank the student scores for each Q , but what I am really looking for is a way to compare the assessment scores at different stages (Inital and review). I dont so much need the averages but to show if the scores have improved or declined at each stage.
any ideas?
thanks again
- saud9681 year ago
Memorable Member
Ok let me rethink and update
Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos! - saud9681 year ago
Memorable Member
Try this
#### 1. **Load Data into Power BI**
- **Import your dataset** by clicking "Get Data" and choosing your source (e.g., Excel or CSV).
- **Ensure the data types** are correctly set for each field, especially `Assessment Date` as Date and `Assessment Value` as Number.
#### 2. **Create Measures for Score Calculation**
- **Average Score per Stage**: This helps to calculate and display the average score for each assessment stage.
```DAX
AverageScore = AVERAGE('Table'[Assessment Value])
```
- **Score Comparison (Improvement or Decline)**: You can create a measure to show the difference between assessment stages (e.g., from "Initial" to "Review") for each student.
```DAX
ScoreDifference =
CALCULATE(
SUM('Table'[Assessment Value]),
'Table'[Assessment Stage] = "Review"
)
-
CALCULATE(
SUM('Table'[Assessment Value]),
'Table'[Assessment Stage] = "Initial"
)
```
#### 3. **Create Ranking for Students by Assessment Scores**
Ranking helps to understand student performance relative to others within the same stage.
```DAX
Rank =
RANKX(
FILTER(
'Table',
'Table'[Assessment Stage] = EARLIER('Table'[Assessment Stage])
),
'Table'[Assessment Value],
,
DESC,
DENSE
)
```
#### 4. **Create Visuals in Power BI**
- **Line Chart for Score Trend (Average Scores per Stage)**:
- **X-Axis**: `Assessment Stagee
- **Y-Axis**: `Average Score measure
- This chart will help visualize the change in average scores across assessment stages.
- **Table for Individual Student Progress**:
- Include `Student ID`, `Assessment Stage`, `Assessment Value`, and `Rank`.
- You can also add the **ScoreDifference** measure here to directly show progress or decline for each student.
#### 5. **Add Conditional Formatting for Score Progress**
- To highlight improvements or declines, you can apply conditional formatting to the `ScoreDifference` column (e.g., green for improvement and red for decline).
#### 6. **Slicer for Filtering by Student or Quarter Code**
- Add slicers for `Student ID` or `AS Quarter Code` to allow interactive filtering so you can track individual student progress or focus on specific assessment criteria.
Best Regards
Saud Ansari
If this post helps, please Accept it as a Solution to help other members find it. I appreciate your Kudos!