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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
sushma1412_Ind
Frequent Visitor

Need help on filtering multiple values of same columns using And

sushma1412_Ind_0-1643349762955.png

This is my data .

Here i want  to find out count of employees who has done both Power BI and Azure.

As per data only Empid =1 is the only employee who has done both certifications and count should be one and that count i want to use in other calculations.

1 ACCEPTED SOLUTION
sushma1412_Ind
Frequent Visitor

Here is the solution .create a measure as below will give results
ABC =

var aTT = SUMMARIZE(
FILTER(ALL(Emp),Emp[Certification]="Power BI"),Emp[Empid],Emp[Certification])

var bTT = SUMMARIZE(
FILTER(ALL(Emp),Emp[Certification]="Azure"),Emp[Empid],Emp[Certification])

return



COUNTROWS(NATURALINNERJOIN(SELECTCOLUMNS(aTT,"EmployeeID",Emp[Empid]),SELECTCOLUMNS(bTT,"EmployeeID",Emp[Empid])))

View solution in original post

5 REPLIES 5
sushma1412_Ind
Frequent Visitor

Here is the solution .create a measure as below will give results
ABC =

var aTT = SUMMARIZE(
FILTER(ALL(Emp),Emp[Certification]="Power BI"),Emp[Empid],Emp[Certification])

var bTT = SUMMARIZE(
FILTER(ALL(Emp),Emp[Certification]="Azure"),Emp[Empid],Emp[Certification])

return



COUNTROWS(NATURALINNERJOIN(SELECTCOLUMNS(aTT,"EmployeeID",Emp[Empid]),SELECTCOLUMNS(bTT,"EmployeeID",Emp[Empid])))
Fowmy
Super User
Super User

@sushma1412_Ind 

You can create a the following measure

Count of Emp =
CALCULATE (
    DISTINCTCOUNT ( tablename(empid),
    tablename(certification) IN {"Power BI" , "Azure"} )
)

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

@Fowmy - This will work as OR condition and it will give the count of employees who has done power bi or Azure and we will get count as 2 but i want count as 1 who has done both Powerbi and Azure

@sushma1412_Ind 

 

The formula I shared should give you one as the result as I have used DISTINCTCOUNT.

If you use AND then you wont any results as a single row cannot contain both so please test it and reply

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

sushma1412_Ind
Frequent Visitor

any suggestions

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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