dax formula to count every entry in your data set for ratio calculations. aka something similar to ALL() function to count entries?

IloveDeathMEtal

New Member
Joined
May 15, 2014
Messages
3
Employees
[TABLE="width: 500"]
<tbody>[TR]
[TD]bill[/TD]
[/TR]
[TR]
[TD]john[/TD]
[/TR]
[TR]
[TD]bill[/TD]
[/TR]
[TR]
[TD]erin[/TD]
[/TR]
[TR]
[TD]alex[/TD]
[/TR]
[TR]
[TD]john[/TD]
[/TR]
[TR]
[TD]bill[/TD]
[/TR]
[TR]
[TD]bill[/TD]
[/TR]
[TR]
[TD]bill[/TD]
[/TR]
[TR]
[TD]bill[/TD]
[/TR]
</tbody>[/TABLE]

total count of employees=10

is there a dax formula that i can use to count all my employees?
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
The simplest way I can think of is:
Code:
Total Count of Employees :=
COUNTROWS ( ALL ( EmployeesTable ) )

This formula would include blank Employees in the count, however.
If that's an issue you could use something like:

Code:
Total Count of Nonblank Employees :=
CALCULATE ( COUNTA ( EmployeesTable[Employee] ), ALL ( EmployeesTable ) )
 
Upvote 0

Forum statistics

Threads
1,224,145
Messages
6,176,652
Members
452,739
Latest member
SCEducator

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top