This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have a table of quantities and respective dates. I want to create a Rolling Sum by quarters.
E.g. the table is the following:
Date Qty
01-Jan-17 7
01-Oct-17 2
The formula I am using:
Running Total CANX Quantity =
CALCULATE (
SUM(Table[Qty]),
FILTER (
ALL( Table ),
Table[Date] <= max(Table[Date])
),
)
The problem is that in the Matrix Viz the Data is shown as:
2017
Qtr 1 Qtr 2 Qtr 3 Qtr 4
7 9
And I need Qtr 2 and Qtr 3 also display 7
Any suggestions?
Solved! Go to Solution.
Hi @untrue,
Do you have an individual Calendar table? If not, you need to create one first(using CALENDAR Function (DAX)).
Then you should be able to use the formula below to create the measure and show it within the Matrix with the date column from the created Calendar table.
Running Total CANX Quantity =
CALCULATE (
SUM ( Table1[Qty] ),
FILTER ( ALL('Date'),'Date'[Date]<=MAX('Date'[Date])&&'Date'[Year]=MAX('Date'[Year]))
)
Here is sample pbix file for your reference.![]()
Regards
Hi @untrue,
Do you have an individual Calendar table? If not, you need to create one first(using CALENDAR Function (DAX)).
Then you should be able to use the formula below to create the measure and show it within the Matrix with the date column from the created Calendar table.
Running Total CANX Quantity =
CALCULATE (
SUM ( Table1[Qty] ),
FILTER ( ALL('Date'),'Date'[Date]<=MAX('Date'[Date])&&'Date'[Year]=MAX('Date'[Year]))
)
Here is sample pbix file for your reference.![]()
Regards
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 22 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 60 | |
| 35 | |
| 28 | |
| 22 | |
| 21 |