We'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
Hi guys,
I have got some HR data and would like to see the number of active employees at any given date range ([SelectionDate]) and visualise them in a column chart with x axis being the date range. For example, if the [SelectionDate] is less than termination date[TermDate] and greater than hire date [HireDate], a count of 1 should be displayed in the column chart against that date.
I have given it a try but cannot achieve what I wanted. I basically want a time series of number of active employees but the dataset only has the latest data. I dont know if this requires date parameter? Please see links to the dummy dataset and pbi file.
PBI:
https://drive.google.com/file/d/1-9AVevN06C-k6Wz6DAmEerqMRHb85W34/view?usp=sharing
Dataset:
Any help or pointers would be appreciated!
Cheers
Solved! Go to Solution.
Hi @Anonymous ,
Please try:
ActiveInd =
VAR _T=FILTER('DataTable',[HireDate]<=MAX('SelectionDates'[SelectionDateRange]) && [TermDate]>=MAX('SelectionDates'[SelectionDateRange]))
RETURN COUNTROWS(_T)
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Please try:
ActiveInd =
VAR _T=FILTER('DataTable',[HireDate]<=MAX('SelectionDates'[SelectionDateRange]) && [TermDate]>=MAX('SelectionDates'[SelectionDateRange]))
RETURN COUNTROWS(_T)
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
I can probably help if you select a specific month/range of months rather than a specific date/date range (as you have shown in your visual)? Will that be acceptable to you?
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 |
|---|---|
| 54 | |
| 39 | |
| 32 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 37 | |
| 34 | |
| 22 |