Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Vanessa88
New Member

Monthly cost and revenue where revenue = monthly total less previous month's value for Accrual

Hi All, 

I need to calculate monthly total cost and revenue to create a high level graph comparing both for finacial report 

Requirements: 

Cost =  NZ & AU Jobs cost + NZ & AU Discretionary

Revenue = NZ & AU Consulting + NZ AU Software

 

Here's my requirement to calculate the REVENUE: 

If (Account Type = "AU Consulting" , MONTHLY TOTAL SHOUD BE THE SUM OF THE CURRENT MONTH AU CONSULTING LESS PREVIOUS MONTHS' ACCRUAL VALUE under AU Consulting. ALSO IF (Account Type = "NZ Consulting", MONTHLY TOTAL SHOUD BE THE SUM OF THE CURRENT MONTH NZ CONSULTING LESS PREVIOUS MONTHS' ACCRUAL VALUE under NZ Consulting. 

 

This is what my data sets look like. I can calculate it manually in excle for the life of me I can't fathom the formula to do this in Power BI.  Can anyone help me please? Really appreciate your help. Thanks! 

ItemAccountAccount TypeJob NameJob NoJan-22Feb-22Mar-22Apr-22May-22Jun-22Jul-22
CostAUAU Job CostMNB76921000500200200800200100
CostAUAU Job CostElyssa77171000500200200800200100
CostAUFinance AU Discretionary201000500200200800200100
CostNZFinanceNZ Discretionary101000500200200800200100
CostNZNZ Job CostCBD31761000500200200800200100
CostNZNZ Job CostALDS35001000500200200800200100
CostNZNZ Job CostLight36121000500200200800200100
CostNZNZ Job CostHHS36781000500200200800200100
RevenueAUAU ConsultingACCRUALS11000500200200800200100
RevenueAUAU ConsultingSWD76021000500200200800200100
RevenueAUAU ConsultingHMN76801000500200200800200100
RevenueAUFinanceAU Software201000500200200800200100
RevenueNZFinanceNZ Software101000500200200800200100
RevenueNZNZ ConsultingACCRUALS11000500200200800200100
RevenueNZNZ ConsultingCCR32951000500200200800200100
RevenueNZNZ ConsultingAPR35001000500200200800200100
RevenueNZNZ ConsultingAMS35641000500200200800200100
RevenueNZNZ ConsultingCPS35721000500200200800200100
Total Cost AU& NZ   800040001600160064001600800
Total Revenue AU   400015006006002400600300
Total Revenue NZ   6000200070010004600400400
Total Revenue AU& NZ   1000035001300160070001000700

 

Cheers,
Vanee

 

 

1 REPLY 1
v-jianboli-msft
Community Support
Community Support

Hi @Vanessa88 ,

 

Sorry for that the information you have provided is not making the problem clear to me. Can you please share more details to help us clarify your scenario?

 

Please provide me with more details about how to calculate the revenue.

 

Best Regards,

Jianbo Li

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.