Forum Discussion
inner join
- 9 years ago
Hi Mariam1991,
Could you try the formula below to see if it works in your scenario? :smileyhappy:
New Column In Table A = COUNTROWS ( FILTER ( RELATEDTABLE ( 'TableB' ), 'TableB'[status] = "payed" ) )
Regards
Hi Mariam1991,
Could you try the formula below to see if it works in your scenario? :smileyhappy:
New Column In Table A = COUNTROWS ( FILTER ( RELATEDTABLE ( 'TableB' ), 'TableB'[status] = "payed" ) )
Regards
hi
thanks a lot , it works correctly but if i need to count just a distinct id
- v-ljerr-msft9 years agoMicrosoft Employee
Hi Mariam1991,
Could you try the formula below to see if it works? :smileyhappy:
New Column In Table A = COUNTROWS ( FILTER ( RELATEDTABLE ( 'TableB' ), 'TableB'[status] = "payed" && 'tableB'[DATE_str] = 'TableA'[Date] ) )Regards
- Mariam19919 years agoHelper II
it doesn't work
New Column In Table A = COUNTROWS ( FILTER ( RELATEDTABLE ( 'TableB' ), 'TableB'[status] = "payed" && 'tableB'[DATE_str] = 'TableA'[Date] ) ) it doesnt give me the possibility to add =tableA[DATE] :(
- v-ljerr-msft9 years agoMicrosoft Employee
Hi Mariam1991,
A little weird, the formula works fine on my test.
So could you try the formula below to see if it works? :smileyhappy:
New Column In Table A = VAR dateA = MAX ( 'TableA'[Date] ) RETURN COUNTROWS ( FILTER ( RELATEDTABLE ( 'TableB' ), 'TableB'[status] = "payed" && 'tableB'[DATE_str] = dateA ) )Regards
- Mariam19919 years agoHelper II
Thank you so much !