Forum Discussion

leandross89's avatar
leandross89
Icon for Helper II rankHelper II
2 years ago
Solved

Help to creat a calculated column in dax

Hi dear, I would like some help to create a calculated column. This calculated column checks if the value in the "Rule_rank" column is "Rank". If so, it verifies if there are previous records wher...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi leandross89 ,

    Thanks to Ahmedx  for the reply, please allow me to provide another insight:
    1. Create a calculated column and populate the data in groups.

    Column =
    CALCULATE(MIN('Table'[Index]),FILTER(ALL('Table'),'Table'[Rule_rank] = "Rank" && 'Table'[Index] >= EARLIER('Table'[Index])) )

    2. Create a calculated column and display OK if it meets the conditions.

    Column 2 =
    IF('Table'[Index] < 'Table'[Column] && 'Table'[Searched] = 367 && 'Table'[Code] = "A" ,"OK")

    If your Current Period does not refer to this, please clarify in a follow-up reply.

     

    Best Regards,

    Clara Gong

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.