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
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 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.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.