Showing results for 
Search instead for 
Did you mean: 
Helper V
Helper V

Creating average report grade accross years

Hello Everyone

I wanna create a measure that returns secret reports grade as it's if a single report assigned for each year but if there is more than one report for the same year then return average of them and corresponding grade title for this average

this is the secret reports decisions table 



and here is the report grades matrix for each employee accross years in dSecretReports Table



like you see it gives an empty values for some rows and i dun know why and at the same time i want this matrix to be governed by any other field criteria in the model known that EmpID and Employee Name columns are coming from different table and the same goes for Report Degree and Report Title columns so this matrix components are coming from different dimension tables 

here is the reports grades table



so as you see i wanna display the secret reports grades for each year for each of the employees who got a secret report during this year and i want this matrix to be governed and sliced by any other column or slicer in the data model for example :-

i created a column like this picture to display the years like this 2014 - 2015 2015 - 2016 and so on if you look at this column you will find duplicates starting from year 2019 and for this years i wanna return the average of assigned report grades but if it's for old years which have no duplicates then it returns the same value without averaging .

and for this report i wanna show at the rows section

- Report Year at this formatting (Current year - 1)

- ( Current Year) - Report decision Date and explaination

- Employee name

- Employee address and other basic data

- Employee current Main and Sub working site

- Current herarchy

At the Values section or even at rows area either i wanna show the following:-

- Report Grade

- Grade Title

and this is how iit's gonna be like in the excel fact table ( i hided all irrelevant columns )



and those are the sample files

Excel Fact Table 

Sample PBIX 

Community Support
Community Support

Hi @Islam ,


Sorry, this huge model confuses me. Can you simplify your data model, or create a relatively simple example, that is, data, the table looks simple. I‘ll be glad to help you.


Best Regards,

Stephen Tao


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



ok sure i'll try to simplify it for you sir no problem

Helpful resources

August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors