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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
FreedJustine
Helper I
Helper I

Newbie, I want to get the measure of all distinct count in Table B

Hi, Im a newbie in Power Bi, I have two tables below and want to calculate the distinct count in Table B, however it seems like it only calculate the distict count that has matches in Table A.
 

My Result is = 4 instead of 5
 
I have a big data and merging a table will slow down the process. Please help! Thank you in Advance.
 
 
1 ACCEPTED SOLUTION

Hi @FreedJustine 

It seems you may try ALL function to create a measure to clear the filters as below.If it is not your case,please follow the How to Get Your Question Answered Quickly to post your simple assumed data and expected output.

Reference:https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept...

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

This should work properly - do you have any filters applied from table A? If so, that will affect the outcome.

Hi, Yes I do have filters, i filter them by date.

Hi @FreedJustine 

It seems you may try ALL function to create a measure to clear the filters as below.If it is not your case,please follow the How to Get Your Question Answered Quickly to post your simple assumed data and expected output.

Reference:https://www.sqlbi.com/articles/managing-all-functions-in-dax-all-allselected-allnoblankrow-allexcept...

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors