I am looking for ideas on how best to tackle my problem/challenge. I have a project, for example, for a $100,000. It's going to take six months to complete, and I need to forecast the revenue for each period based on the grid below. I thought I should insert a derived column into my projects table that defines the duration. The number of months remaining seems to be a simple matter of a DATEDIFF between the start date and the reporting date. In the second photo, I have an unpivoted table that has the same information. The only difference is the "remaining" column, and that is used to calculate the ending balance. Is this a case of simply using a lookup function in DAX?
I'm very clear about your requirement. Could you describe your scenario in more details?
If it is convenient, could you share a dummy pbix file which can reproduce the scenario and your desired output, so that we can help further investigate on it? You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading.)
Community Support Team _ Cherry Gao If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your response. To illustrate, let's say we have a project for $100,000. It's going to take three months to complete. In the construction world, we compute revenue by the percentage of completion method. So we are assuming that we will record revenue over three months. The first month we recognize 35%, 40% in the second month, and 35% in the third ($35k, $40k, $25k).
I'm not sure how best to dynamically capture the various rates.
If I were doing an Excel-type lookup, you'd search on the duration (number of months), then the current position; e.g., month 3, 4, 6, whatever, and where they match, you'd multiply the rate by the contract amount.