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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mareidraper
Frequent Visitor

Need Help - Cumulative Sum

I am pulling in Opportunity Products from Salesforce Object and trying to determin Year over Year New Business Portion.

 

Some Opportunities have 5 years of products while others only have 1 year.

 

I am trying to determine New Business for 2018 vs 2019 vs 2020, etc.

 

The trouble I am running into is when there is a null value in year 2019 let's say, my sub and grand totals are not accurate.

 

It has plagued me now for months. I have set up measures to capture what the Yearly Values are by filtering by billing date:

 

ARR - 2018 = IF(ISBLANK(SUMX(FILTER('Opportunity Product','Opportunity Product'[Billing_011918__c].[Year]=2018),'Opportunity Product'[MRR_HIDDEN__c])),0,SUMX(FILTER('Opportunity Product','Opportunity Product'[Billing_011918__c].[Year]=2018),'Opportunity Product'[MRR_HIDDEN__c]))

 

I have plugged the prior year value if the value is to be null:

 

ARR - 2019 = IF(ISBLANK(SUMX(FILTER('Opportunity Product','Opportunity Product'[Billing_011918__c].[Year]=2019),'Opportunity Product'[MRR_HIDDEN__c])),[ARR - 2018],SUMX(FILTER('Opportunity Product','Opportunity Product'[Billing_011918__c].[Year]=2019),'Opportunity Product'[MRR_HIDDEN__c]))

 

The second formula is not pulling the plugged valued into the subtotals/totals.

 

Thoughts?

 

Any assistance would be greatly appreciated.

 

Best,

 

Marei Draper

1 REPLY 1
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @mareidraper,

 

I tested the above two measures on my side, both of them returned expected values.

 

The second formula is not pulling the plugged valued into the subtotals/totals.

 

What is the result you have got?

 

Please share some sample data of 'Opportunity Product' and describe your desired output and currently incorrect result with screenshots. If possible, you could directly share the .pbix file.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.