Forum Discussion
How to perform "left join" filter?
The first option +0 did not work since it did some kind of cartesian and listed all the data from Table B. The second option ideally would work but I coudln't find the "show items with no data" when i click on the column in the grid and it didn't have that option.
I ended up trying this:
add new column =
CALCULATE(COUNT('Table B'[Work Item Id]), FILTER('Table B', [Parent Work Item Id] = 'Table A'[Work Item Id]))Then i set the new column in the grid display as "don't summarize"
2 Replies
- AllisonKennedy
Community Champion
teedee29 If I understand your question correctly I think you have a couple options:
Option A: Add zero to your measure:
Task Count = COUNTROWS(FILTER('Table B',CONTAINS('Table A',[Work Item Id],'Table B'[Parent Work Item Id]))) + 0
Option B: To show blank, (not zero), you can use the "Show Items with no data" option.
If that doesn't work, let me know what result that gives and why it's wrong, and how the tables A and B are related
- teedee29Frequent Visitor
The first option +0 did not work since it did some kind of cartesian and listed all the data from Table B. The second option ideally would work but I coudln't find the "show items with no data" when i click on the column in the grid and it didn't have that option.
I ended up trying this:
add new column =
CALCULATE(COUNT('Table B'[Work Item Id]), FILTER('Table B', [Parent Work Item Id] = 'Table A'[Work Item Id]))Then i set the new column in the grid display as "don't summarize"