Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello.
Let's assume the following situation:
$1000 - sales on March
$2000 - sales on April.
If I select March from slicer the graph shows 1000, if I select April from slicer the graph shows $2000, but I want it to show the Total sales until April included ($3000).
I have tried the following formula but it does not work:
Total Sales= Calculate(sum('Open Courses'[New Sales]), filter('Open Courses','Open Courses'[Date] <= calculate(max('Calendar'[DateKey]))))
I have a 1to* relationship between Calendar[DateKey] and Open Courses[Date].
Please help me figure it out!
Check out this article on creating a Cumulative Custom Column in your data...
https://community.powerbi.com/t5/Desktop/DAX-Running-Total-YTD/td-p/21576
I used this to create the 'Cumulative by Date' graph on the far right below. (Bars show filter boarders).
P.S. It seems like a 'Before' slicer might be even easier. See my 2 middle examples where I just use a standard card of 'Sales' with the Slicer and the 'Before' option to only select end dates? ( You said drop down, so that might not help you..)
Cumulative =
VAR RowDate = Table5[Date]
RETURN
CALCULATE (
SUM ( Table5[Sales] ),
FILTER (
Table5,
Table5[Date] <= RowDate
)
)
Proud to give back to the community!
Thank You!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |