Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Ramesh-iTalent
Administrator
Administrator

Filtering doesn't work

Hi, I'm new to Powerbi, and I'm developing a board. I have three tables:

Now, I want to find a count of emp ids that belong to a particular city in Table 2. For some reason the city filter does not work in Table 1. Can someone help me with this kind of problem? Happy to explain more in case I'm not clear on my question.

sujatakaran_1-1592906215749.png

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @Ramesh-iTalent 

 

it should work If you count emp id in tbl 3, like 

Measure 2 = 
DISTINCTCOUNT( 'Table3'[EmployeeID] )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn


 

View solution in original post

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Ramesh-iTalent 

Change filter direction between table1 and table3 with both direction.

Then use distinctcount DAX funtion.

 

Best Regards

Maggie

amitchandak
Super User
Super User

@Ramesh-iTalent , You need to count from table 3 and Table 1 and Table 2 should be 1-M relationship with Table 3

 

Distinctcount(Table3[emp id])

 

Mariusz
Community Champion
Community Champion

Hi @Ramesh-iTalent 

 

it should work If you count emp id in tbl 3, like 

Measure 2 = 
DISTINCTCOUNT( 'Table3'[EmployeeID] )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn


 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.