Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I have two tables
id column b column c
1
2
3
4
5
TABLE 2
Id feature column c
1 1
2 1
3 2
4 3
5 4
Now I want count of id from table 1 where feature (from table 2) is not equal to 1. id being common in both tables. So basically as in above case it shoud return count as "3".
Solved! Go to Solution.
Hi @Anonymous,
First you should create relationship between Table1 and Table2. Please click Manage Ralationships->New Relationship, you can create it by the common columns in both tables as the screenshot shown.
Click OK, the relationship is built. Select the relationship button(highlighted in red line), you can there is a relationship between them.
Then, create a measure using the formula.
result = CALCULATE(COUNTA(Table1[id]),FILTER(Table2,Table2[feature]<>1))
Finnaly, create a card visual to display the measure, you will get the desired result.
If you have other issues, please let me know.
Best Regards,
Angelia
Hi @Anonymous,
First you should create relationship between Table1 and Table2. Please click Manage Ralationships->New Relationship, you can create it by the common columns in both tables as the screenshot shown.
Click OK, the relationship is built. Select the relationship button(highlighted in red line), you can there is a relationship between them.
Then, create a measure using the formula.
result = CALCULATE(COUNTA(Table1[id]),FILTER(Table2,Table2[feature]<>1))
Finnaly, create a card visual to display the measure, you will get the desired result.
If you have other issues, please let me know.
Best Regards,
Angelia
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.