Forum Discussion
Mariam1991
9 years agoHelper II
inner join
Hi, i need to join 2 tables in order to calculate a meaure in power BI i have 2 tables A and table B my aim is to add a measure in table A in sql : select count(A.ID) from A inner join B on ...
- 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
vanessafvg
9 years agoCommunity Champion
Power BI is not the same as sql, creating a relationship has the same affect as an inner join, so once you have created the relationship(join) it should allow you to create the measure, have you tried and if so what error are you getting?
Mariam1991
9 years agoHelper II
okey ! there is no error but in result we observe that it doesn't take the join in consideration , like we calculate the count(id ) in table A without the relationship with table B ... between thanks for your feedback
- vanessafvg9 years agoCommunity Champion
Can you show me how you wrote the measure?
also can you show me the screen shot of the join?
do you want to count unique id's or all the rows?