Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I'm looking for a DAX formula (or another method) that will give me a count of employees, per month, hitting their hours target.
Below is an example of the source data (I have a lot more names/months etc.).
On the left is the data, and on the right is the desired output.
Solved! Go to Solution.
Hi
Try this measure
Hi Dan,
The difference between our models is that i have only 1 date column and you have 2.
Do you have a date table with a relation ship on one date column ?
Hi Dan,
The difference between our models is that i have only 1 date column and you have 2.
Do you have a date table with a relation ship on one date column ?
James,
I fixed my date relationships and the formula worked perfectly!
Thanks so much!
No probs !! Enjoy Now
Hi James,
See below my date table:
The relationship is as below:
The shift export only has 1 relationship with the date table.
Thanks again for the speedy response!
Sorry this is my source an excel file imported in Power BI. That is the Feuil3 in my measure.
I also work with a dtae table.
This is the result in BI
Hi
Try this measure
@Anonymous thank you for your response, I've included that in my actual data, I think it's almost there - but it isn't kicking out the correct figures.
For example - I know that Dec 21 there were around 190 employees working over 60 hours, but the formula is kicking out a much lower figure(53) See results below:
If it helps. my source data (shift export) looks like this:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
103 | |
101 | |
78 | |
69 | |
63 |
User | Count |
---|---|
141 | |
106 | |
101 | |
85 | |
72 |