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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Employee
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!!

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors