Forum Discussion

Rondel's avatar
Rondel
Icon for Helper I rankHelper 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!