Measure formula in Power BI Desktop

Barto

Board Regular
Joined
Jul 30, 2013
Messages
78
Hi,

Hope this is the right forum. I have a database of employees each with a start date and in the termination date column it populate with a termination data if they have resigned but it blank if there are still active.

I'm trying to report on the active headcount but date (date X) so the formula needs to pick of if an employee "was" active on a specific date (date x)

I need a measure formula in Power BI Desktop that is "countifs" type of formula

The formula needs to count if meeting 3 criteria

StartDate is Greater than or equal to date X
TerminationDate is less than or equal to date x OR is blank

hope this makes sense
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hope someone will confirm this but I think you should play with =CALCULATE() as it is and I quote Rob Collie "A Supercharged SUMIF()"
 
Upvote 0

Forum statistics

Threads
1,224,115
Messages
6,176,475
Members
452,728
Latest member
mihael546

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