Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
RI
Frequent Visitor

Running Total Filtering

Hi,

Have created table containing month cummlative budget vs. cummlative actual.

Below is table Achv. is for Apr-Sep (6 Months)

RI_0-1697971019067.png

 

above is working absolutely fine till we select filter ,  results when we selecte a particular category in slicer

RI_1-1697971121945.png

 it is showing till sep only which is ok for actual but we want budget nos. for complete year,

 

So running totals are adjusted to Month of Actual data instead full year,

 

Pls guide  

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @RI ,

 

I think your table should look like as below.

vrzhoumsft_0-1698129272779.png

Then add a Calendar table.

Calendar = 
ADDCOLUMNS (
    CALENDAR ( DATE ( 2023, 04, 01 ), DATE ( 2024, 03, 31 ) ),
    "Year", YEAR ( [Date] ),
    "MonthSort", MONTH ( [Date] ),
    "Month", FORMAT ( [Date], "MMM" )
)

Data model:

vrzhoumsft_1-1698129352539.png

Measure:

Actual = CALCULATE(SUM('Table'[Acutal]),FILTER(ALL('Calendar'),'Calendar'[Date]<=MAX('Calendar'[Date])))
Budget = CALCULATE(SUM('Table'[Budget]),FILTER(ALL('Calendar'),'Calendar'[Date]<=MAX('Calendar'[Date])))

Result is as below.

vrzhoumsft_2-1698129395884.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @RI ,

 

I think your table should look like as below.

vrzhoumsft_0-1698129272779.png

Then add a Calendar table.

Calendar = 
ADDCOLUMNS (
    CALENDAR ( DATE ( 2023, 04, 01 ), DATE ( 2024, 03, 31 ) ),
    "Year", YEAR ( [Date] ),
    "MonthSort", MONTH ( [Date] ),
    "Month", FORMAT ( [Date], "MMM" )
)

Data model:

vrzhoumsft_1-1698129352539.png

Measure:

Actual = CALCULATE(SUM('Table'[Acutal]),FILTER(ALL('Calendar'),'Calendar'[Date]<=MAX('Calendar'[Date])))
Budget = CALCULATE(SUM('Table'[Budget]),FILTER(ALL('Calendar'),'Calendar'[Date]<=MAX('Calendar'[Date])))

Result is as below.

vrzhoumsft_2-1698129395884.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

andhiii079845
Solution Sage
Solution Sage

You have to upload some example table of your underlaying data. I think you will need a second table for the date to

get the complete year in the table





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors