I am planning to create DAX calculated measure in the PowerBI where Date will be passed as a slicer for the measure and it should return the current headcount of the employee.
SELECT
AND A.active = 1
Solved! Go to Solution.
You may take a look at the links below.
You may take a look at the links below.
thanks
any help ... much appreciated
@suhasakole wrote:I am planning to create DAX calculated measure in the PowerBI where Date will be passed as a slicer for the measure and it should return the current headcount of the employee.
SELECTCOUNT(DISTINCT A.emplid) AS HEADCOUNTFROMtbl_EmpHistory AS AInner join (SELECT emplid, MAX(WorkStartedDate) as WorkStartedDateFROM tbl_EmpHistoryWhere WorkStartedDate <= cast('2017-12-31' as Date) -- this data will pass as slicer from PowerBI DashboardGroup by emplid ) AS BON A.emplid = B.emplidAND A.WorkStartedDate = B.WorkStartedDateWHERElower(A.type) = 'emp'AND A.active = 1
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!
User | Count |
---|---|
119 | |
75 | |
66 | |
51 | |
49 |
User | Count |
---|---|
183 | |
101 | |
80 | |
79 | |
77 |