Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
13 | |
11 | |
8 |
User | Count |
---|---|
24 | |
19 | |
12 | |
11 | |
10 |