Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi there, I hope I have posted this in the correct place.
I have been tasked to create a stats report for an awarding organisation. They would like me to put together a line graph that compares:
Context: This report will enable our moderators to compare how an examiner has been performing in the past month or two, against the centres performance over all time. This will mean that our moderators will be able to see whether an examiner is marking too harshly or too leniently against the centres overall average.
To calculate the percentage of all marks out of 100 for a given centre, I have implemented the two following measures:
TotalExamsAtCentre =
CALCULATE (
DISTINCTCOUNT ( 'ExaminerAndCentre'[ResultId] ),
ALL ( 'ExaminerAndCentre'[Result Added Date] ),
ALL ( 'ExaminerAndCentre'[Examiner] )
)
CentrePercentage =
[TotalExamsAtCentre]
/ CALCULATE (
[TotalExamsAtCentre],
ALL ( 'ExaminerAndCentre'[Mark of 100] ),
ALL ( 'ExaminerAndCentre'[Result Added Date] )
)
The ALL [Result Added Date] filter is important in these expressions as I don't want the date range slider to be affecting the stats, as they need to be for all time.
For the examiner i have implemented two similar measures:
TotalExams =
COUNT ( ExaminerAndCentre[ResultId] )
ExaminerPercentage =
[TotalExams]
/ CALCULATE ( [TotalExams], ALL ( 'ExaminerAndCentre'[Mark of 100] ) )
These measures are this way, as the percentage will vary depending on what slicer filters have been applied.
Here is a screen shot of my current report
The examiner line is perfectly correct, the percentage adds up to 100. However, the centre line does not. This is because the line graph only creates a matching point where one appears in the Examiner line, so there are a lot of missing values in the blue line and I am struggling to find a solution for this. This issue happens when the Result Added Date Slicer has been reduced so that the examiner has only marked a couple of exams, limiting the number of Marks out of 100 . Is this issue related to my DAX expessions?
Feel free to download the report here -
Thank you for taking the time to read this and for any help you can give. This is my first time posting on here, and I hope this post is informative to my issue.
Hi @Anonymous - I realize this is an old post, but I just recently discovered this particular sub-forum 🙂
I wasn't able to find the pbix in the zip file you linked, but from what you're describing, have you tried using a clustered column chart instead of lines? Lines are generally used to show a trend evolving over time, whereas the columns work better with a non-date X-axis.
Hope this helps
David
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
8 | |
8 |
User | Count |
---|---|
13 | |
12 | |
11 | |
10 | |
8 |