Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have a OrderFactTable that has an OrderDate. I need to calculate a RunningTotal on a Patient Level for 45 days when a certain trigger happens on that patient. In this instance the Trigger would be when it has been over 90 days since their previous order.
So their is an OrderFact linked to a DateDim and a PatientDim. I need a running total on a Numeric column 'TotalMME' for 45 days after the Date the Patient has had their first Order in atleast 90 day.
Thanks
@Anonymous , You can get running total like
calculate(Sum(OrderFact[TotalMME]), filter(all(Date), Date[Date] <= max(Date[Date]) ) )
or
calculate(Sum(OrderFact[TotalMME]), filter(allselected(Date), Date[Date] <= max(Date[Date]) ) )
Not clear on 45 and 90 logic
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 42 | |
| 21 | |
| 18 |