Calculate Employees on the First Day of the Month
-
Wednesday, August 22, 2012 3:56 PM
Hi
I have created a DateDimenionTable and marked it as a Date Table and trying to get the count of of employees as of month starting , I am getting an error too many arguments were passed to the count function.
Please let me know what should be the correct expression
=OPENINGBALANCEMONTH(count(EmpDataMonthWiswe[Emp no],DimTime[Date]))
Thanks,Gautam- Edited by sql fresher Wednesday, August 22, 2012 3:57 PM elaborated
All Replies
-
Wednesday, August 22, 2012 9:05 PM
Try:
=OPENINGBALANCEMONTH(count(EmpDataMonthWiswe[Emp no]),DimTime[Date])
HTH!
David Hager
Excel FMVP
- Proposed As Answer by Elvis LongMicrosoft Contingent Staff, Moderator Thursday, August 30, 2012 10:07 AM
- Marked As Answer by Elvis LongMicrosoft Contingent Staff, Moderator Friday, August 31, 2012 2:02 AM
-
Thursday, August 30, 2012 10:08 AMModerator
Hello,
You can aslo look into the following articles about Count() and OPENINGBALANCEYEAR functions:
COUNT Function: http://technet.microsoft.com/en-us/library/ee634791.aspx
OPENINGBALANCEMONTH Function (DAX): http://technet.microsoft.com/en-us/library/ee634224(v=sql.105).aspxBin Long
TechNet Community Support
- Marked As Answer by Elvis LongMicrosoft Contingent Staff, Moderator Friday, August 31, 2012 2:02 AM

