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.
Solved! Go to Solution.
Hi,
You may download my solution file from here.
Hope this helps.
Hello Gurus
I have a Date Table that has work days and work hours of 7.35, what I am wanting to do is exclude public holidays and all leave based on an average of days, not actual dates (due to having a large national work force and not having leave data available).
Averaging out unavailable days = 42 per year at 3.5 days per month, reducing both work days & hours - how can I achieve this?
All advice appreciated
Hi @robhel,
Please share us some sample data with expected result to help us clarify your table structures and requirement of coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Thank you for responding - I've currently got the table on the left with work days based off Sat & Sun 0 Mon to Fri 1, which gives me the work days * 7.35 = Mth Wrk Hrs
Where I would really like assistance is to build the table on the right, where I have averaged out leave to 3 days per month
Hi,
In the new Table, just subtract 3 from the first column and then multiply the new value with 7.35.
Thanks Ashish for your response and I thought great that is just so simple & I've just been over thinking it......But alas, it hasn't given me exactally what I'm after........
WkDs Leave = CALCULATE(Sum('Date Table'[WorkDay]) - 3)
It provides the correct number of month days when filters applied, however the total is only subtracting 3 not 36 = 257, not expected 224 (3 * 12)
My Date Table has been compiled using borrowed code from all the great gurus out there:
WorkDay = SWITCH( TRUE(),
[WeekDayShort] = "Sat", 0, [WeekDayShort] = "Sun", 0, 1)
Mth Wk Days = CALCULATE(SUM('Date Table'[WorkDay]))
I don't want to have to build a seperate "Leave Table" just after away to mark 3 days per mth as nonwork days......All suggestions welcomed
Hi,
Share the link from where i can download your PBI file. Tell me the exact table where you want the answer to be 224.
Thanks Ashish - I would like the days and hours to be within the DateTable - hopefully you can assist me with this once you have stopped laughing at my attempt of building the table
https://www.dropbox.com/s/25uyshtj3ot3ckm/DateTable.pbix?dl=0
Hi,
You may download my solution file from here.
Hope this helps.
Awesome!!! Thank you so much
You are welcome.
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 |
---|---|
106 | |
94 | |
76 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |