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
Anonymous
Not applicable

Display lifetime total for customer on each of the customer's donation rows in grid

Would prefer a solution that uses a measure because then I could add a filter and change the total depending on the category of donations the customer had.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

All the attempts I made to use this and other scripts failed due to running out of memory etc since I have millions of constituents.  Seems like the best solution is to create a table with this data and relate it the constituent or donation (if I need to show it on the donation line).

View solution in original post

2 REPLIES 2
d_gosbell
Super User
Super User

Assuming that you have an existing measure called 'Donations' and a date table called 'Date' that has a relationship to the table containing the donation amount you could use a patter like the following:

 

LTD Donations = 
CALCULATE(
[Donations] , FILTER( ALL( 'Date'[Date] ) , 'Date'[Date] <= MAX('Date'[Date]) ) )

 

 

Anonymous
Not applicable

All the attempts I made to use this and other scripts failed due to running out of memory etc since I have millions of constituents.  Seems like the best solution is to create a table with this data and relate it the constituent or donation (if I need to show it on the donation line).

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.