Forum Discussion
Calcular nota
- 9 years ago
In this scenario, I suggest you create a score measure to calculate the answer rate for each student, then create a summarized table with stundent column and score column only. After that you can create measures to count the stundents for different bucket. Please refer to my sample below:
Create a summarized table with student and score column only.
Table = ADDCOLUMNS( SUMMARIZECOLUMNS(Table1[Student]), "Score", CALCULATE(SUM(Table1[Answer]),ALLEXCEPT(Table1,Table1[Student]))/CALCULATE(COUNTROWS(Table1),ALLEXCEPT(Table1,Table1[Student])) )
Then you can create two measures and populate them into card visual:
Above 75% = CALCULATE(COUNTA('Table'[Student]),FILTER('Table','Table'[Score]>=0.75))Below 75% = CALCULATE(COUNTA('Table'[Student]),FILTER('Table','Table'[Score]<0.75))Regards,
What I need is the following:
I need to count how many students, by test, had scores below 75% and how many had scores above 75%. Number of students per test.
In this scenario, I suggest you create a score measure to calculate the answer rate for each student, then create a summarized table with stundent column and score column only. After that you can create measures to count the stundents for different bucket. Please refer to my sample below:
Create a summarized table with student and score column only.
Table = ADDCOLUMNS( SUMMARIZECOLUMNS(Table1[Student]), "Score", CALCULATE(SUM(Table1[Answer]),ALLEXCEPT(Table1,Table1[Student]))/CALCULATE(COUNTROWS(Table1),ALLEXCEPT(Table1,Table1[Student])) )
Then you can create two measures and populate them into card visual:
Above 75% = CALCULATE(COUNTA('Table'[Student]),FILTER('Table','Table'[Score]>=0.75))
Below 75% = CALCULATE(COUNTA('Table'[Student]),FILTER('Table','Table'[Score]<0.75))
Regards,