Forum Discussion
Felizzpe
1 year agoNew Member
Calculated column value based on another column and rows
Greetings, I'm trying to make a calculated column that shows the production order status based on the status from all other production orders of the same group. (Production orders have groups, so...
Sahir_Maharaj
1 year agoSuper User
Hello Felizzpe,
Can you please try this approach:
Order Status =
VAR CurrentGroup = ProcessoAtualReal[Grupo_Faturamento]
VAR IsAnyOrderNotReady =
CALCULATE(
COUNTROWS(
FILTER(
ProcessoAtualReal,
ProcessoAtualReal[Grupo_Faturamento] = CurrentGroup &&
ProcessoAtualReal[Processo_Atual_Desc] <> "READY FOR DISPATCH"
)
)
) > 0
RETURN
IF(
ISBLANK(CurrentGroup),
BLANK(),
IF(
IsAnyOrderNotReady,
"NOT READY",
"READY FOR DISPATCH"
)
)