Power Bi - Require solution for the question

jeevar

New Member
Joined
Mar 18, 2017
Messages
2
I have an excel file which has the list of employees and their Date of Joining. I also created the calendar table and completed the relationship.

I need to get the count of employees to be calculated as follows:

1. I need the count of employees for each month YTD (I used TOTALYTD and it works fine)
2. I need the count of employees to be carried forward after each Fiscal Year - For example, the count as on 31-December-2016 should be taken the opening balance for 01-January-2017.

Can anyone help in this regard?
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Do they ever leave? Normally I would expect a start date and a departure date. There are various approaches. You can either not create a relationship and apply a virtual relationship, or you could write a "lifetime to date" measure using the physical relationship. Have a read of my blog article here DAX Time Intelligence Explained - Excelerator BI


employees = calculate(countrows(employeeTable),filter(employeeTable,employeeTable[date] <= max(calendar[date])))
 
Upvote 0

Forum statistics

Threads
1,225,726
Messages
6,186,669
Members
453,368
Latest member
xxtanka

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