Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I want to return for each row, the machine number a batch was processd for the first time, the table should look like this:
Date and time | Machine # | Batch # | Machine first Process |
01/01/2017 08:00 | 1 | AAAAAA | 1 |
01/01/2017 10:00 | 4 | AAAAAA | 1 |
01/01/2017 16:00 | 7 | AAAAAA | 1 |
01/01/2017 09:00 | 9 | BBBBBB | 9 |
01/01/2017 12:00 | 3 | BBBBBB | 9 |
01/01/2017 19:00 | 15 | BBBBBB | 9 |
Thanks for the help
Solved! Go to Solution.
Hi @ratercero,
Please use the formula. And see the result in screenshot.
Column1 = CALCULATE(LOOKUPVALUE(Table2[Machine],Table2[Date],CALCULATE(MIN(Table2[Date]),ALLEXCEPT(Table2,Table2[Batch #]))),ALLEXCEPT(Table2,Table2[Batch #]))
Best Regards,
Angelia
Maybe something like:
Machine first Process = CALCULATE(VALUES([Machine #]),FILTER(ALLEXCEPT(Table,[Batch #]),MIN([Date and time])))
Hi @ratercero,
The given table is your expected result table, right? It’s difficult to reproduce your scenario based on your description. Is there any chance to post your resource data for analysis? So that we can post solution which is close to your requirement.
Best Regards,
Angelia
Thanks to a unique sequential production Id this partially works for me, but does not follow the criterio of earliest start date:
1ST_MACHINE = CALCULATE(
FIRSTNONBLANK(
t_Batch[c_MachineId],
t_Batch[c_MachineId]),
FILTER(
ALLEXCEPT(
t_Batch,
t_Batch[BATCH_NUMBER_1]),
MIN(
t_Batch[c_StartedDT])
)
RT
Hi @ratercero,
Please use the formula. And see the result in screenshot.
Column1 = CALCULATE(LOOKUPVALUE(Table2[Machine],Table2[Date],CALCULATE(MIN(Table2[Date]),ALLEXCEPT(Table2,Table2[Batch #]))),ALLEXCEPT(Table2,Table2[Batch #]))
Best Regards,
Angelia
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
115 | |
100 | |
88 | |
68 | |
61 |
User | Count |
---|---|
152 | |
120 | |
102 | |
87 | |
68 |