Forum Discussion
AllanBerces
9 months agoPost Prodigy
Containsstring and Count
Hi good day Can anyone help me on my calculated column, i have two table that connected. I want to count the number of Job. DESIRED OUTPUT Table Connection JC Count ...
- 9 months ago
Sorry, I optimized the code.
- 9 months ago
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Ahmedx
9 months agoSuper User
попробуй удалить ALL
L Count =
VAR _KewSearch= SELECTCOLUMNS( {"LS","LP"},"KeyWord",[Value])
VAR _Result = COUNTROWS(FILTER('MAIN_DATA TABLE','MAIN_DATA TABLE'[Code] in _KewSearch))
RETURN
_Result- Ahmedx9 months agoSuper User
pls try
Q Count = VAR _KewSearch= SELECTCOLUMNS( {"QP","QF","QK","QL"},"KeyWord",[Value]) VAR _Cod = MAX('MAIN_DATA TABLE'[Main No]) VAR _Result = COUNTROWS(FILTER(ALL('MAIN_DATA TABLE'),'MAIN_DATA TABLE'[Code] in _KewSearch&&'MAIN_DATA TABLE'[Main No]=_Cod)) RETURN _Result ----------------- L Count = VAR _KewSearch= SELECTCOLUMNS( {"LS","LP"},"KeyWord",[Value]) VAR _Cod = MAX('MAIN_DATA TABLE'[Main No]) VAR _Result = COUNTROWS(FILTER(ALL('MAIN_DATA TABLE'),'MAIN_DATA TABLE'[Code] in _KewSearch&&'MAIN_DATA TABLE'[Main No]=_Cod)) RETURN _Result- AllanBerces9 months agoPost Prodigy
Hi Ahmedx thank you for the reply but it shows blank
- AllanBerces9 months agoPost Prodigy
Hi Ahmedx can i use this as calculated column
- AllanBerces9 months agoPost Prodigy
- AllanBerces9 months agoPost Prodigy
Hi Ahmedx thank you but show same, it count all not on the specific Main No.
- Ahmedx9 months agoSuper User
try
- AllanBerces9 months agoPost Prodigy
Hi Ahmedx thank you for the reply but the new calculated column we required is for the current table.