Forum Discussion

PBrainNWH's avatar
PBrainNWH
Helper II
2 years ago
Solved

Calculations on Calculated Table

Any way to create calculations on this table? I need to divide the Donations by the # fields.
 
Donations by Customer by FY =
SUMMARIZE(
    'Opportunity Contact Role',
    'Opportunity Contact Role'[ContactId]Contact[Full_Name_with_Nickname__c],'Opportunity Contact Role'[Role],
    "2023 Donations"CALCULATE(SUM('Opportunity Contact Role'[Amount__c])+0'Opportunity Contact Role'[Close_Date__c] >= DATE(202271) && 'Opportunity Contact Role'[Close_Date__c] <= DATE(2023630)),
    "2024 Donations"CALCULATE(SUM('Opportunity Contact Role'[Amount__c])+0'Opportunity Contact Role'[Close_Date__c] >= DATE(202371) && 'Opportunity Contact Role'[Close_Date__c] <= DATE(2024630)),
    "2025 Donations"CALCULATE(SUM('Opportunity Contact Role'[Amount__c])+0'Opportunity Contact Role'[Close_Date__c] >= DATE(202471) && 'Opportunity Contact Role'[Close_Date__c] <= DATE(2025630)),
    "2023 # of Donations"CALCULATE(COUNT('Opportunity Contact Role'[Close_Date__c])+0,'Opportunity Contact Role'[Close_Date__c] >= DATE(202271) && 'Opportunity Contact Role'[Close_Date__c] < DATE(202371)),
    "2024 # of Donations"CALCULATE(COUNT('Opportunity Contact Role'[Close_Date__c])+0,'Opportunity Contact Role'[Close_Date__c] >= DATE(202371) && 'Opportunity Contact Role'[Close_Date__c] < DATE(202471)),
    "2025 # of Donations"CALCULATE(COUNT('Opportunity Contact Role'[Close_Date__c])+0,'Opportunity Contact Role'[Close_Date__c] >= DATE(202471) && 'Opportunity Contact Role'[Close_Date__c] < DATE(202571))
)
I need to be able to divide Donations by # (ex. 2023 Donations/2023 # of Donations)

I can't seem to find the appropriate syntax to do this on my calculated table. 
  • Hi PBrainNWH - Can you please share some sample data for reference with expectations.

     

    Did I answer your question? Mark my post as a solution! This will help others on the forum!
    Appreciate your Kudos!!

1 Reply

  • Hi PBrainNWH - Can you please share some sample data for reference with expectations.

     

    Did I answer your question? Mark my post as a solution! This will help others on the forum!
    Appreciate your Kudos!!