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
bharathiscripps
Frequent Visitor

Help with Cumulative Sum DAX measure

Hi,

 

Could someone help me understand why I have deafult values showing up in cumulative sum of calculated week?

The cumulative sum is correct for the week numbers (lead weeks) which has some value for the rest i get the final default value.

I want to show only the weeks which has some value not all weeks from the calculated column. Is that possible?

 

bharathiscripps_0-1643226324755.png

bharathiscripps_1-1643226337163.png

 

Thank you,

Bharathi

 

3 REPLIES 3
v-yalanwu-msft
Community Support
Community Support

Hi, @bharathiscripps;

 

Is your problem solved? If so, Would you mind accept the helpful replies as solutions? Then we could close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.

Best Regards,
Community Support Team_ Yalan WuIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yalanwu-msft
Community Support
Community Support

Hi, @bharathiscripps ;

You could try it.

Cum PacingRev Lead =
IF (
    [Pacing Gross] <> BLANK (),
    CALCULATE (
        [Pacing Gross],
        FILTER (
            ALLSELECTED ( 'SCRIPPS_PACING' ),
            [Lead Weeks] <= MAX ( [Lead Weeks] )
        )
    )
)

If it doesn't fit your model, can you share a simple file with sensitive information removed?

Best Regards,
Community Support Team_ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@bharathiscripps ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Usually, a measure like this should work

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

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.