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

Get Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.

Reply
Rflad
Advocate I
Advocate I

Fill "empty" months with previous accumulated values

Trying to fill an accumulated stacked chart with values, months that have no values. Using the previous months accumulated values for the empty parts. Any suggestions?

 

I use this messure to produce the values from CRM/Dynamics 365:

 

Accumulated CRM = SUMX(FILTER(ALLSELECTED(OpportunitySet);OpportunitySet[EstimatedCloseDate] <=MAX(OpportunitySet[EstimatedCloseDate]));OpportunitySet[EstimatedValues])

 

In tha image below I would like to have september accumulated values for october (if empty) and so on.

 

accumulated

2 REPLIES 2
v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Rflad,

Have you resolved your issue? If you have, please mark the helpful reply as answer, or welcome to share your solution. So that more people will find the workaround.

Best Regards,
Angelia

v-huizhn-msft
Microsoft Employee
Microsoft Employee

Hi @Rflad,

What do your resource data look like? Why there is "empty" months? I notice you use ALLSELECTED function, is there a slicer in your report? Could you please share more details for further analysis?

Please try the following formula based on your measure, use the new measure and check if it works fine.

New_Accumulated =
IF (
    ISBLANK ( OpportunitySet[Accumulated CRM] ),
    CALCULATE (
        OpportunitySet[Accumulated CRM],
        FILTER (
            OpportunitySet,
            OpportunitySet[EstimatedCloseDate]
                = DATE ( YEAR ( MAX ( OpportunitySet[EstimatedCloseDate] ) ), MONTH ( MAX ( OpportunitySet[EstimatedCloseDate] ) ) - 1, DAY ( MAX ( OpportunitySet[EstimatedCloseDate] ) ) )
        )
    ),
    OpportunitySet[Accumulated CRM]
)


Best Regards,
Angelia

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

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.