Forum Discussion

RajeshPBI's avatar
RajeshPBI
Frequent Visitor
2 years ago

Revenue Recognition Calculation Issue

 Hello,

Business Requirement for DAX: Calculation of Revenue for a period.
1 - Cost Percentage for a period is derived from a measure called CostPercent which is already defined and in use (Denoted by % in the excel). This is a % derived from the actual cost for each period and the sum of actual cost for that period along with the forecasted costs for the remaining periods. This is working as expected.
2- ExpectedRevenue is the column in the Project Master Table which has the Total expected revenue.
I need Dax Code for the Revenue Calculation, the logic is explained below.
- First month of the project - CostPercent Multiplied by TotalEstimatedRevenue
- Second Month Of the Project - CostPercent Multiplied by TotalEstimatedRevenue Less Revenue of the previous month
- Third Month - CostPercent Of each Month Multiplied By the TotalEstimatedRevenu Less Revenue of month one and two.

In Short: Revenue for a particular month is the multiplication of the % with the (Expected Revenue Less Revenue already recognized in previous periods).Please Note this revenue which is recognized is NOT being stored in any table. It is all calculated on the matrix Visual with the calendar months as the rows and measures in the columns as depicted in the attached excel...

I am able to calcualte the simple formula of cost % by Expected revenue. But i need to deduct the sum of the earlier months revenue from the expected revenue before i multiply this with the cost % dynamically on the visual and this is where i am stuck.

We have 100's of projects and project code is a slicer and when the chooses a project code, the visual will need to represent the right numbers.
Can i do this using just a measure is there an alternate soluion? What is the best approach for the above?

 

Project CodeP 1000 
Total Expected Revenue (Over Life Of The Project)1,39,000 
PeriodRevenue Recognized
Oct-237.00%$9,730.00
Nov-2312.00%$15,512.40
Dec-2318.00%$20,476.37
Jan-2424.00%$22,387.50
Feb-2432.00%$22,686.00
Mar-2451.00%$24,585.95
Apr-2447.00%$11,102.24
May-2438.00%$4,757.43
Jun-2460.00%$4,657.27
Jul-24100.00%$3,104.85

12 Replies

    • Ahmedx's avatar
      Ahmedx
      Super User

      hi lbendlin I have a question, why did you use the EVALUATEANDLOG function? if you remove it the result will not change

      • lbendlin's avatar
        lbendlin
        Super User

        I used it for troubleshooting and forgot to remove it before posting.

    • RajeshPBI's avatar
      RajeshPBI
      Frequent Visitor

      Thank you So much Ibendlin. The one thing which is different is tha the Cost Percentage is a measure, not a value stored in the column of a table. The measure is working well when used separately. I want to use the same measure which calculates this % on the visual for each row to also be used in calculation of the revenue recognized every period. Is that possible?

       

      Regards