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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
joshua1990
Post Prodigy
Post Prodigy

Running Total by Month for multiple Months

Hi all!

I have a report with a year and month slicer and a simple bar visual that shows me the running total per Month.

Now I have the issue if I select 2 years, then I get an error. 

MTD = 
CALCULATE (
    [Sales],
    FILTER (
        ALL ( 'Calendar' ),'Calendar'[Date]
                <= MAX ( 'Calendar'[Date] )
            && 'Calendar'[Month Number]
                = MAX ( 'Calendar'[Month Number] )
    )
)

 

How can I still get a running total for each moth based on the selected year(s) and months?

 

2 REPLIES 2
tamerj1
Super User
Super User

Hi @joshua1990 

what error do you get?

A table of multiple values was supplied where a single value was expected

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.