Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 28 |
| User | Count |
|---|---|
| 137 | |
| 102 | |
| 71 | |
| 67 | |
| 65 |