可以为下一个请求编写dax代码:
如果在“status_new”列中显示“active”,则取“testerName”单元格数据 - >删除最后两个字符“G1”(始终为G1)并在“MTDate”列中搜索相同的日期(每个测试者名称始终有两个相同的日期,一次是“XXXXG1”测试人员,第二个是“XXXX”测试人员),--->在我们发现此行检查测试仪状态后,如果它处于“活动状态”,则将该单元格清空,如果它还有其他东西粘贴“活动”。
MTDate TesterName Day TesterHostname TesterFamily status G1_STATUS MASTER_STATUS Master_new1 STATUS_NEW Status_updated
4/27/2017 20:00 CMT0441 27 HA04TCMT0441W7 CMT Active Active Active
4/27/2017 20:00 CMT0441G1 27 HA04TCMT0441G7 CMT Active Active Active Active
4/27/2017 19:45 CMT0441G1 27 HA04TCMT0441G7 CMT Active Active Active Active
4/27/2017 19:45 CMT0441 27 HA04TCMT0441W7 CMT Active Active Active
4/27/2017 19:30 CMT0441 27 HA04TCMT0441W7 CMT Inactive Inactive Inactive
4/27/2017 19:30 CMT0441G1 27 HA04TCMT0441G7 CMT Inactive Inactive
4/27/2017 19:15 CMT0441 27 HA04TCMT0441W7 CMT Inactive Inactive Inactive
4/27/2017 19:15 CMT0441G1 27 HA04TCMT0441G7 CMT Inactive Inactive
4/27/2017 19:00 CMT0441 27 HA04TCMT0441W7 CMT Inactive Inactive Inactive
4/27/2017 19:00 CMT0441G1 27 HA04TCMT0441G7 CMT Inactive Inactive
4/27/2017 18:45 CMT0441 27 HA04TCMT0441W7 CMT Inactive Inactive Inactive
4/27/2017 18:45 CMT0441G1 27 HA04TCMT0441G7 CMT Inactive Inactive
4/27/2017 18:30 CMT0441 27 HA04TCMT0441W7 CMT Inactive Inactive Inactive
4/27/2017 18:30 CMT0441G1 27 HA04TCMT0441G7 CMT Inactive Inactive
4/27/2017 18:15 CMT0441 27 HA04TCMT0441W7 CMT Active Active Active
4/27/2017 18:15 CMT0441G1 27 HA04TCMT0441G7 CMT Inactive Inactive
4/27/2017 18:00 CMT0441 27 HA04TCMT0441W7 CMT Active Active Active
4/27/2017 18:00 CMT0441G1 27 HA04TCMT0441G7 CMT Inactive Inactive
4/27/2017 17:45 CMT0441 27 HA04TCMT0441W7 CMT Active Active Active
4/27/2017 17:45 CMT0441G1 27 HA04TCMT0441G7 CMT Inactive Inactive
4/27/2017 17:30 CMT0441G1 27 HA04TCMT0441G7 CMT Inactive Inactive
4/27/2017 17:30 CMT0441 27 HA04TCMT0441W7 CMT Active Active Active
4/27/2017 17:15 CMT0441G1 27 HA04TCMT0441G7 CMT Inactive Inactive
4/27/2017 17:15 CMT0441 27 HA04TCMT0441W7 CMT Active Active Active
我尝试使用“IF”命令执行此操作,但我一次又一次地发现了死锁。