Forum Discussion
RicFischer
5 years agoHelper I
Calculated Column - RankX with Filter
Hi, I have a table with the following that has date+time (ActivityStart), grade (Grade), and a concatenated field (StudentCourseStageUnit). I need to rank each identical StudentCourseStageUnit wh...
- 5 years ago
Hi RicFischer
AttemptNumberCol = CALCULATE ( COUNT ( AttemptNumber[ActivityStart] ), AttemptNumber[ActivityStart] <= EARLIER ( AttemptNumber[ActivityStart] ), AttemptNumber[Grade] IN { "S", "U" }, ALLEXCEPT ( AttemptNumber, AttemptNumber[StudentCourseStageUnit] ) )Please accept the solution when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
- 5 years ago
How long? Try this
Col = COUNTROWS ( FILTER ( ALL ( AttemptNumber[ActivityStart], AttemptNumber[Grade], AttemptNumber[StudentCourseStageUnit] ), AttemptNumber[StudentCourseStageUnit] = EARLIER ( AttemptNumber[StudentCourseStageUnit] ) && AttemptNumber[ActivityStart] <= EARLIER ( AttemptNumber[ActivityStart] ) && AttemptNumber[Grade] IN { "S", "U" } ) )Please accept the solution when done and consider giving a thumbs up if posts are helpful.
Contact me privately for support with any larger-scale BI needs, tutoring, etc.
AlB
5 years agoCommunity Champion
Looks good. I actually realized the other day that was initial check was missing and was surprised that it was working in all cases...
|
|
Please accept the solution when done and consider giving a thumbs up if posts are helpful. Contact me privately for support with any larger-scale BI needs, tutoring, etc. |