Forum Discussion
byr10112
Microsoft Employee
4 years agoCount Occurrence of Column Values in Another Table
This sounds like a pretty simple request, but I havent been able to find a solution yet. Maybe I'm still thinking from a t-SQL perspective. I'm trying to find how many times a value in a column ...
- 4 years ago
Measure = var _a = SELECTEDVALUE('Table A'[Skills Name]) var _b = HASONEVALUE('Table A'[Skills Name]) var _c = countrows( FILTER('Table B', 'Table B'[Skills Requested] = _a )) Return if (_b, if (ISBLANK(_c), 0, _c), BLANK() )Output:
byr10112
Microsoft Employee
4 years agoI looked at my relationships and found some mistakes. Once fixed, the emasure you provided works fine. Thanks for your help.
nickgesp
2 years agoNew Member
Any chance you remember how to fixed this? I am getting the same issue where if the value is blank it puts in this big number, when it should be putting in 0.