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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors