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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
ejoyce5
Frequent Visitor

running total sum per category with category not in order

Within a table I am trying to get the rollling sum of each member, where the rolling sum is ordered by sale date. This is important to do a rolling sum vs. an overall total for each member because I need to identify the sales date at which a member hit above a certain $ threshold. Ex: identify when a member hit $200 total $, 

Screenshot 2024-03-26 at 11.18.10 AM.png

1 ACCEPTED SOLUTION

PBI file attached.  I have kept the threshold as 110.

Hope this helps.

Ashish_Mathur_0-1712014817393.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1711584260259.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

This worked for the running total measure, but now I am trying to pull the first date of when the member's rolling total > 20k. Like the below screenshot, this member hit above 20k on 2/1/2024, so I want in my output a single line for each member to show the minimum date they hit above 20k and the overall sum of paid amount per member. The minimum date should not change once the member hits above 20k. I created a measure that identified when rolling paid amount > 20k then 1 else 0. When I filter on this measure = 1, I get those dates where the rolling paid amount is greater than 20k but I only want 1 row returned for each member with the minimum date when rolling paid amount > 20k.

ejsoccer5_0-1712011448554.png

 

PBI file attached.  I have kept the threshold as 110.

Hope this helps.

Ashish_Mathur_0-1712014817393.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
JamesFR06
Resolver IV
Resolver IV

Hi @ejoyce5 

 

Please try this code :

 

RTSD =
var Mem=SELECTEDVALUE(RT2[Menber])
var Datemaxi=SELECTEDVALUE(RT2[Sell Date])
return
CALCULATE(sum(RT2[Amount]),ALL(rt2),RT2[Menber]=mem&&RT2[Sell Date]<=Datemaxi)
 
JamesFR06_0-1711474561980.png

 

Unfortunately this doesn't get to where I want to be. I have to have a column that shows the running total per member ordered by date, because what I am trying to do is flag for each row where a members total amount >= $200 and take the MIN date with the flag to show the date at which a member hit the $200 threshold

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors