cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

Microsoft
Microsoft

You can just create a measure as

distinct CNT = DISTINCTCOUNT(Table2[Column1])

Capture.PNG

View solution in original post

2 REPLIES 2
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
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

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.

Top Solution Authors
Top Kudoed Authors