March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
22 | |
19 | |
16 | |
9 | |
5 |
User | Count |
---|---|
37 | |
29 | |
16 | |
14 | |
12 |