Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.