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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
PBrainNWH
Helper II
Helper II

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. 
1 ACCEPTED SOLUTION
rajendraongole1
Super User
Super User

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!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

1 REPLY 1
rajendraongole1
Super User
Super User

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!!





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.