Forum Discussion

Rondel's avatar
Rondel
Helper I
1 year ago
Solved

Visual Calculation: Running Sum Help

Hello,   Is there a way to select which date range you want the running sum function to select? For instance, the graph below, I would like the blue bar to not show for 6/4/2025 since the data is b...
  • Arash_Bhz's avatar
    1 year ago

    Hi Rondel, just add a visual filter and under ForTrend in the pane, Advanced Filter, select Is Not Blank.

     

  • Ashish_Excel's avatar
    1 year ago

    Hi,

    Just in case you want a non visual calculation solution, try this measure

    Measure = if([story points]=blank(),blank(),calculate([story points],datesytd(calendar[date])))

  • grazitti_sapna's avatar
    1 year ago

    Hi Rondel 

    Please try the below calculation as measure in the chart.

    RunningTotal_StoryPoints =
    IF (
    ISBLANK([Story Points]),
    BLANK(),
    CALCULATE (
    SUM('Table'[Story Points]),
    FILTER (
    ALL('Calendar'),
    'Calendar'[Date] <= MAX('Calendar'[Date]) &&
    NOT(ISBLANK('Table'[Story Points]))
    )
    )
    )


    ๐ŸŒŸ I hope this solution helps you unlock your Power BI potential! If you found it helpful, click 'Mark as Solution' to guide others toward the answers they need.
    ๐Ÿ’ก Love the effort? Drop the kudos! Your appreciation fuels community spirit and innovation.
    ๐ŸŽ– As a proud SuperUser and Microsoft Partner, weโ€™re here to empower your data journey and the Power BI Community at large.
    ๐Ÿ”— Curious to explore more? [Discover here].
    Letโ€™s keep building smarter solutions together!