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
Hi, I am fairly new to powerbi.
I have the following table -
date map2 va
01-Jan-24 ca 5
01-Feb-24 ca 10
01-Mar-24 ca 14
01-Jan-24 cl 23
01-Mar-24 cl 21
01-Apr-24 cl 54
i want to populate cumulative values for each of the month as show in the table below
map2 jan feb mar apr
ca 5 15 29 29
cl 23 23 44 98
Total 28 38 73 127
However, my current dax query doesn't work when there are missing values -
i am unable to get it to work. please help.
Hi,
Try this approach
Total = sum('Table5'[va])
Running total = calculate([Total],datesytd(calendar[date],"31/12"))
Hope this helps.
Hello @mbudmx,
Can you please try this approach:
1. Create a Date Table
DateTable = CALENDAR(MIN('Table5'[date]), MAX('Table5'[date]))
2. Update the DAX formula
Cumulative Value =
VAR CurrentDate = MAX('DateTable'[Date])
VAR CurrentMap2 = MAX('Table5'[map2])
VAR Result =
CALCULATE(
SUM('Table5'[va]),
FILTER(
ALL('DateTable'[Date]),
'DateTable'[Date] <= CurrentDate
),
'Table5'[map2] = CurrentMap2
)
RETURN
IF(
ISINSCOPE('Table5'[map2]),
Result,
SUMX(
SUMMARIZE(
'Table5',
'Table5'[map2],
"CumulativeForMap2", [Cumulative Value]
), [CumulativeForMap2]
)
)
Hope this helps.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 46 | |
| 42 | |
| 24 | |
| 18 |
| User | Count |
|---|---|
| 193 | |
| 124 | |
| 101 | |
| 67 | |
| 49 |