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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
franorio
Helper III
Helper III

IF Function 2 conditions, count status

Hello everybody, I have the following question.

I have 3 columns: Manager; Scope & Status.

  • Column ¨Manager¨ shows if a person has an employee under his structure... if he has someone, it shows an ID, if not, its shown blank. (Values: An ID number/Blank)
  • Column ¨Scope¨ shows if the manager is in scope of the evaluation or not. (Values: ¨Yes¨/¨No¨)
  • Column ¨Status¨ shows if he has completed or not the training. (Values: ¨Completed¨/¨Not Completed¨)

I need to create a measure to count the amount of Status ¨Completed¨, if column manager is a ¨non blank¨, and also a Scpoe ¨yes¨.

 

Have been trying different type of formulas without positive outcomes.

 

Thanks & regards!

1 ACCEPTED SOLUTION

But in the mean time try this : but add your table name where I have 'Table2'

 

Measure = CALCULATE(
			COUNTROWS('Table2') , 
			FILTER(
				'Table2',
					'Table2'[Status]="Completed" 
					&& 'Table2'[Scope]="Yes" 
					&& NOT ISBLANK('Table2'[Manager])
					)
				)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

5 REPLIES 5
Phil_Seamark
Microsoft Employee
Microsoft Employee

Can you please post a small sample of your data?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

But in the mean time try this : but add your table name where I have 'Table2'

 

Measure = CALCULATE(
			COUNTROWS('Table2') , 
			FILTER(
				'Table2',
					'Table2'[Status]="Completed" 
					&& 'Table2'[Scope]="Yes" 
					&& NOT ISBLANK('Table2'[Manager])
					)
				)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Thanks a lot Phil!! worked perfectly!!

Datatouille
Solution Sage
Solution Sage

Hi @franorio

 

Try this:

[Measure] = CALCULATE( Countrows(YourTable), not ISBLANK(YourTable[Manager]),YourTable[Scope] = "Yes",YourTable[Status]="Completed")

@Datatouille Thanks for your reply, but still doesn't work for me. 

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors