Forum Discussion
tzuchiao
1 year agoRegular Visitor
Using numeric range parameter in a column
Hi all, I am dealing with a dataset about student lateness, with the following columns: Day_x_Student_ID, Date, Student_ID, Late_min, Mentor_ID I wanted to create a Column to determine whether t...
- 1 year ago
Hello tzuchiao,
Can you please try this approach:
Count_Late_Days = VAR SelectedThreshold = SELECTEDVALUE(Late_Threshold[Late Threshold], 10) RETURN CALCULATE( DISTINCTCOUNT(StudentData[Day_x_Student_ID]), FILTER( StudentData, StudentData[Late_min] > SelectedThreshold ) )
Sahir_Maharaj
1 year agoSuper User
Hello tzuchiao,
Can you please try this approach:
Count_Late_Days =
VAR SelectedThreshold = SELECTEDVALUE(Late_Threshold[Late Threshold], 10)
RETURN
CALCULATE(
DISTINCTCOUNT(StudentData[Day_x_Student_ID]),
FILTER(
StudentData,
StudentData[Late_min] > SelectedThreshold
)
)