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 blank for that date: 

 

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

     

  • 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])))

  • 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!

7 Replies

  • Arash_Bhz's avatar
    Arash_Bhz
    Frequent Visitor

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

     

  • Ashish_Excel's avatar
    Ashish_Excel
    Solution Supplier

    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])))

  • 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!

  • Thank you all for the replies - I will try these out

  • v-priyankata's avatar
    v-priyankata
    Community Support

    Hi Rondel 

    May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

    Thank you.

  • v-priyankata's avatar
    v-priyankata
    Community Support

    Hi Rondel 
    I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
    Thank you.

  • v-priyankata's avatar
    v-priyankata
    Community Support

    Hi Rondel 
    I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
    Thank you.