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
piety
Frequent Visitor

Cumulative total, where 1st month will be 0%, 2nd mth 30%, 3rd 60% & 4th mth onwards 100%

Hi,

 

I have a ProjectWise data with projectID, ExpectedMonthlyRevenue and projectLiveDate

I want to calculate Monthly Running total, where 1st month revenue addition will be 0%, 2nd mth 30%, 3rd 60% & 4th mth onwards 100% and should get reset at the end of the year

 

 

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @piety ,

 

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 problem.


Best Regards,
Stephen Tao

v-stephen-msft
Community Support
Community Support

Hi @piety ,

 

First you need to create a calendar and create a relationship between the calendar table and the main table

Table 2 = ADDCOLUMNS(CALENDAR(MIN('Table'[projectLiveDate]),MAX('Table'[projectLiveDate])),"Month",MONTH([Date]))

4.png

 

Secondly, create the following measure

Cumulative total = var _last=CALCULATE(SUM('Table'[ExpectedMonthlyRevenue]),FILTER(ALL('Table 2'),[Month]=MAX('Table 2'[Month])-1))
var _this=SUM('Table'[ExpectedMonthlyRevenue])
var _divide=DIVIDE(_this-_last,_last)
return IF(ISBLANK(_divide),0,_divide)

5.png

 

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.

 

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.

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.

Top Solution Authors