Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
georgeash
Frequent Visitor

Date Filtered Calculation For Monthly to Weekly Targets

Hi Everyone,

 

I've struggled with a solution for a problem, I have tried using running totals but not all employees add data for each day so the calculations have been off.

 

TARGETS:

Employee A - January - 20 hours

Employee A - February - 18 hours

Employee B - January 24 hours

 

etc.

 

ACTUALS:

Daily entry for each day worked, e.g. January 1 - 2 hours, January 3 - 4 hours.

 

Is there a way I can sum the hours worked over that month (I have this working fine), and then use some formula to calculate the target based on a date filter. So if the first 2 weeks of January are selected, it'll take 14th day out of 31 multiplied by target to give how many hours should have been worked. And if the whole month is selected, it will take the full 31/31*target?

 

Then a measure for the difference between the two numbers for a "Delta"?

 

Appreciate any advice,

 

George

 

 

 

1 REPLY 1
v-rongtiep-msft
Community Support
Community Support

Hi @georgeash , 

What is your desired output? Each month working hours? What is your target?  Could you please provide some sample data and desired output?

How to Get Your Question Answered Quickly 

 

Please provide some sample data and desired output with screenshoot.

 

Best Regards

Community Support Team _ Polly

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.