Fabric is Generally Available. Browse Fabric Presentations. Work
towards your Fabric certification with the Cloud Skills Challenge.
I'm stuck with a calculation of number of FTEs. I have the amount of time employees should work, and the performed amount.
The employees are also categorized per departement and complany.
I can calculate the FTE for every employee, but i can't find out how to do a sum of these numbers, as the measure divides all the hours of all the employees combined.
I also tried using the query editor, but then i have different measures for week, month and year.
My goal is a table which you can expand/drill down up to employee level and week (of year) level, like this:
My data looks like this:
Thanks in advance
Go to Solution.
Hi @Lars_c ,
Because you want a week level, you can create a calculated table as follows. There's a relationship between two tables.
CALENDAR ( MIN ( 'Table'[date] ), MAX ( 'Table'[date] ) ),
YEAR ( [Date] ) & "-"
& WEEKNUM ( [Date] )
Create a measure.
Measure = DIVIDE(SUM('Table'[Hours]),SUM('Table'[HourstoWork]))
You can check more details from here.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
View solution in original post
What if instead of Calender table we used Calculate Column like below in same table :Year-Week = CONCATENATE(CONCATENATE((YEAR(Table[Date]),"-"),WEEKNUM(Table[Date]))
@Lars_c , what is formula you are trying, what is expcted output value
You can have a measure like
use a date table.Date table can have month and year, that you can use in a matrix visual
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.
Check out the November 2023 Power BI update to learn about new features.
130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.