cancel
Showing results for 
Search instead for 
Did you mean: 
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
August 2022 update 768x460.jpg

Check it Out!

Click here to learn more about the August 2022 updates!

August 1 episode 9_no_dates 768x460.jpg

The Power BI Community Show

Watch the playback when Priya Sathy and Charles Webb discuss Datamarts! Kelly also shares Power BI Community updates.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Top Solution Authors
Top Kudoed Authors