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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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