cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
abukapsoun
Helper V
Helper V

measure with multiple filters

Hi Dears,

 

I have the following case 

Column 1   Column 2

1                  NA

1                  NA

2                  X

3                  Y

4                  NA

4                  NA

 

I want to count the number of "NA" with a filter on distinct on column1. So the count of NA return a value = 2 and not 4

 

Thanks,

Mohamed

 

2 ACCEPTED SOLUTIONS

Hi,

 

You need to create the following measures:

 

 

Dsct = Distinctcount(YourTable[Column1])
DsctNA = Calculate ( [Dsct] , YourTable[Column2] = "NA")

 

View solution in original post

Eric_Zhang
Microsoft
Microsoft

You can just create a measure as

distinct CNT = DISTINCTCOUNT(Table2[Column1])

Capture.PNG

View solution in original post

2 REPLIES 2
Eric_Zhang
Microsoft
Microsoft

You can just create a measure as

distinct CNT = DISTINCTCOUNT(Table2[Column1])

Capture.PNG

View solution in original post

Hi,

 

You need to create the following measures:

 

 

Dsct = Distinctcount(YourTable[Column1])
DsctNA = Calculate ( [Dsct] , YourTable[Column2] = "NA")

 

View solution in original post

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power BI User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.