Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!See when key Fabric features will launch and what’s already live, all in one place and always up to date. Explore the new Fabric roadmap
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 they can be dispached all together after everyone is ready)
I tried everything that I know, but no success. Here is the last DAX code that I've tried:
Order Status =
Production Order | Location | Order Group | Order Status |
1 | Finished | 5100 | Not Ready Since PO Nº 4 is not finished yet. |
2 | Finished | 5100 | Not Ready Since PO Nº 4 is not finished yet. |
3 | Finished | 5100 | Not Ready Since PO Nº 4 is not finished yet. |
4 | Painting | 5100 | Not Ready Since PO Nº 4 is not finished yet. |
5 | Finished | 6200 | ready for dispatch |
6 | Finished | 6200 | ready for dispatch |
7 | Finished | 6200 | ready for dispatch |
8 | Finished | 6200 | ready for dispatch |
9 | Finished | 6200 | ready for dispatch |
10 | Finished | 6200 | ready for dispatch |
Solved! Go to Solution.
hi @Felizzpe ,
try like:
column =
VAR _list =
CALCULATETABLE(
VALUES(data[Location]),
ALLEXCEPT(data, data[Order Group])
)
VAR _result =
IF(_list = "Finished", "Ready", "Not ready")
RETURN _result
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"
)
)
hi @Felizzpe ,
try like:
column =
VAR _list =
CALCULATETABLE(
VALUES(data[Location]),
ALLEXCEPT(data, data[Order Group])
)
VAR _result =
IF(_list = "Finished", "Ready", "Not ready")
RETURN _result
User | Count |
---|---|
19 | |
18 | |
16 | |
13 | |
13 |
User | Count |
---|---|
9 | |
8 | |
8 | |
7 | |
6 |