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
Anonymous
Not applicable

How to Forecasting working hours for current month?

Hello 
 
I am trying to forecast working hours for each employer for the current month (The rest of the month (Nov. 03- Nov. 30). I have data from the beginning of this year. Can anybody please help me or give me an idea of how to do it.? 
 
I am trying to tell the employer is going to hit the required hours (Each employer has required hour).
 

Capture.PNG

 

Thank you
 
1 ACCEPTED SOLUTION
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

The picture is vague, please forgive if the word is misspelled. 

 

Try this measure. TODAY function returns the current date.

Forecast =
CALCULATE (
    SUM ( 'Table'[rc_hrs] ),
    FILTER (
        'Table',
        [timeslip_date] <= DATE ( 2020, 11, 30 )
            && [timeslip_date] > TODAY ()
    )
)

 

 

Best Regards,

Stephen Tao

 

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

8 REPLIES 8
v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your table and your problem or share me with your pbix file from your Onedrive for Business.


Best Regards,
Stephen Tao

cabal
New Member

Hi @Anonymous ,

 

You can do it in another way (by graph): use line chart with forecast analysis. By this way, you will be able to get a forecast line with a trusty limits. 

v-stephen-msft
Community Support
Community Support

Hi @Anonymous ,

 

The picture is vague, please forgive if the word is misspelled. 

 

Try this measure. TODAY function returns the current date.

Forecast =
CALCULATE (
    SUM ( 'Table'[rc_hrs] ),
    FILTER (
        'Table',
        [timeslip_date] <= DATE ( 2020, 11, 30 )
            && [timeslip_date] > TODAY ()
    )
)

 

 

Best Regards,

Stephen Tao

 

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

Anonymous
Not applicable

Thank you so much for your help. 

Anonymous
Not applicable

I think this should work. Let me try this. Thanks 

 

amitchandak
Super User
Super User

@Anonymous , Not enough information,

You can use power bi forecasting, Python, or R.

You can formula to get remaining days values

https://towardsdatascience.com/forecasting-in-power-bi-4cc0b3568443

Hello community! Any examples of how to show overtime in 2023?

Anonymous
Not applicable

Hi, thank you. I want it a tabular table. 

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.