Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago

Spread amounts based on due date

HI all, 

 

My data looks like this 

ItemDue date
11-5-2023
21-5-2023
31-5-2023
41-5-2023  
51-5-2023  
61-5-2023  
71-5-2023  
81-5-2023  
91-5-2023

 


In reality there are a lot more records, wat I want to create is a cumelative planning for our employes by calculating the monthly sum that needs to be done in order for all items to be ready at due date. The calculation looks as follows:

[due date - 9 months] = 30% of total count ready
[due date - 8 months] = 8.75% of total count ready + months before
[due date - 7 months = 8.75% of total count ready + Months before 
......

[due date - 1 months] = 8.75% of total count ready  + Months before

 

My disered output looks like this 

8-20222,7
9-20223,4875
10-20224,275
11-20225,0625
12-20225,85
1-2023..
2-2023..
3-2023...
4-20239



Hope you can help me

1 Reply

  • Hi , Anonymous 

    According to your descrionption, you want to get the amount for each year_month  , but in your sample data , it seems has only one date . And i am not fully understand your actual need .

    (1)For the amount , dose it mean you want to get the count of the [Item]?

    (2)For your saying "[due date - 9 months] = 30% of total count ready,[due date - 8 months] = 8.75% of total count ready + months before", What is the total count, dose it means the total amount in your table or it may be filtered by year?

    And what is the "months before" ,dose it need to cross the year?

     

     Can you  provide us with your special right sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

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