Forum Discussion
Analysis from group data
- Anonymous2 years ago
Hi peterpan ,
Thanks for the reply from Ashish_Mathur and AllisonKennedy , please allow me to provide another insight:
1. Create a calculated column.
Quality of Work Rating = SWITCH( 'Table'[Field], "Quality of Work", SWITCH('Table'[User Input], "Very Good", 5, "Good", 4, "Average", 3, "Poor", 2, "Not Proper", 1), BLANK() )2. Create a calculated table.
Table 2 = UNION( SELECTCOLUMNS(FILTER('Table', 'Table'[Field] = "Rating"), "ID",'Table'[ID],"User", 'Table'[User], "Rating", 'Table'[User Input]), SELECTCOLUMNS(FILTER('Table', 'Table'[Field] = "Quality of Work"),"ID",'Table'[ID], "User", 'Table'[User], "Rating", 'Table'[Quality of Work Rating]) )3. Create a relationship.
4. Create a measure.
Measure = IF(MAX('Table'[Field]) = "Target Value",1)You can change the values in the matrix to the average you want.
If your Current Period does not refer to this, please clarify in a follow-up reply.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
AllisonKennedy Laura's rating is the average of many more such ratings which of multiple IDs and below sample data is an illustration to show the desired output.
This first table is how the data is stored in database table and I am confused as to which way (power query or dax or something else) would be the most efficient in terms of processing time and perfromance. Maybe a mix of both. Eager to know how.
If I have to use Power query, I guess I'll have to add an identifier column based on activity to identify the Assesor User from the rest in order to pivot them into column.
- AllisonKennedy2 years agoCommunity Champion
peterpan - so are activities 'B' and 'C' assessors?
- peterpan2 years agoHelper I
AllisonKennedy Yes that's correct. Have added some more context in the Edits.