Forum Discussion

meghansh's avatar
meghansh
Frequent Visitor
1 year ago
Solved

Need help with calculated column

Hello everyone,   I need help creating a calculated column with the following data and conditions: ID Name Course Code End Date Result 12345 Robert Red 21-Mar-21 Pass 12345 Rober...
  • lbendlin's avatar
    1 year ago
    Indicator = 
    var i = [ID] var cc=[Course Code]
    var a = Filter('Table',[ID]=i && [Course Code]=cc && [Result]="Pending" && ISBLANK([End Date]))
    return if(COUNTROWS(a)>0,"Yes","No")
  • Ashish_Mathur's avatar
    1 year ago

    Hi,

    This calculated column formula works

    Column = if(CALCULATE(COUNTROWS(Data),FILTER(Data,Data[ID]=EARLIER(Data[ID])&&Data[Course Code]=EARLIER(Data[Course Code])&&Data[End Date]=BLANK()&&Data[Result]="pending"))>0,"Yes","No")

    Hope this helps.