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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Neil24
Frequent Visitor

Cumulative total, missing month

Hi

 

I have a cumulative total bar chart comparing proposals sent from 2021 to 2022. In September there were no proposals sent. How do you carry accross the same value for August so that September is not left blank?

Neil24_2-1666868833897.png

Running total 2022 = CALCULATE([Gross Value for 2022 running total in Month], FILTER(ALL('All Deals'[Proposal Sent Date]), 'All Deals'[Proposal Sent Date]<=MAX('All Deals'[Proposal Sent Date])))

 

Thank you

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Neil24 
I don't think this can be achieved without the use of a Date Table. Using a Date Table you can slice by [Month Name]

Running total 2022 new =
COALESCE (
    [Running total 2022],
    CALCULATE (
        [Running total 2022],
        ALL ( 'Date'[Month Name] ),
        'Date'[YearMonth Rank]
            = MAX ( 'Date'[YearMonth Rank] ) - 1
    )
)

 

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Neil24 
I don't think this can be achieved without the use of a Date Table. Using a Date Table you can slice by [Month Name]

Running total 2022 new =
COALESCE (
    [Running total 2022],
    CALCULATE (
        [Running total 2022],
        ALL ( 'Date'[Month Name] ),
        'Date'[YearMonth Rank]
            = MAX ( 'Date'[YearMonth Rank] ) - 1
    )
)

 

@Neil24 
You can use the [Month Number] column but that won't work in case the blank month is January and you want to return December of the previous year.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors