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! It's time to submit your entry. Live now!
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! It's time to submit your entry.
| User | Count |
|---|---|
| 51 | |
| 42 | |
| 32 | |
| 26 | |
| 24 |
| User | Count |
|---|---|
| 131 | |
| 118 | |
| 58 | |
| 45 | |
| 43 |