Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register 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
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 34 | |
| 32 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 75 | |
| 72 | |
| 38 | |
| 35 | |
| 25 |