Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register 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
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
18 | |
14 | |
11 | |
10 | |
9 |