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