Forum Discussion
Subtract previous Column total from current row per ID
- Anonymous5 years ago
Hi bigrods ,
Try this calculated column
Process = IF ( [Lesson No] = 2, CALCULATE ( SUM ( tbl_Assessment[Score] ), FILTER ( ALLEXCEPT ( 'tbl_Assessment', tbl_Assessment[Student ID] ), [Lesson No] = 2 ) ) - CALCULATE ( SUM ( tbl_Assessment[Score] ), FILTER ( ALLEXCEPT ( 'tbl_Assessment', tbl_Assessment[Student ID] ), [Lesson No] = 1 ) ) )You can check more details from here.
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.
Hi Mikelytics
Thanks so much, that works to get them into a matrix (see below).
Is it possible to put the measure into a chart, i.e a bar chart showing the no. of students at each progress point (10,20,30 etc?) I have tried (below) but it's rightly not splitting into seperate points. Apologies, I should have figured that out before. Is this where the calculated column comes in?
Many thanks
Hi bigrods ,
you are right in this case you need a calculated column.
Please try the following calculated column:
CALCULATE(Max(table[score]),
Filter(ALL(table),
table[student ID] = EARLIER(table[student ID]) && table[lesson ID] = 2))
Best regards
Mikelytics