Forum Discussion
Reporting on pending task
- 5 years ago
AndreiCapraru , I am hoping you need the report status in table 2.
Create a new column
new column =
var _1 = countx(filter(Table1, Table2[ID] = Table1[ID]), Table[ID])
var _2 = countx(filter(Table1, Table2[ID] = Table1[ID] && Table1[Status] ="COMPLETE"), Table[ID])
var _3 = maxx(filter(Table1, Table2[ID] = Table1[ID] && Table1[Status] ="PENDING"), Table[Name])
return
switch(true(),
_1=_2 , "COMPLETE",
_1 -_2 =1 , _3 ,
"MULTIPLE"
)
AndreiCapraru , I am hoping you need the report status in table 2.
Create a new column
new column =
var _1 = countx(filter(Table1, Table2[ID] = Table1[ID]), Table[ID])
var _2 = countx(filter(Table1, Table2[ID] = Table1[ID] && Table1[Status] ="COMPLETE"), Table[ID])
var _3 = maxx(filter(Table1, Table2[ID] = Table1[ID] && Table1[Status] ="PENDING"), Table[Name])
return
switch(true(),
_1=_2 , "COMPLETE",
_1 -_2 =1 , _3 ,
"MULTIPLE"
)
Thanks amitchandak , that worked perfectly and also learned something in the process 🙂