Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello, Im hoping someone can help, How can I get this measure to leave the running total for the rest of the month blank if there is nothing in the ytd corresponding column, at the moment it fills in the rest of the days with what it has calculated so far.
Solved! Go to Solution.
I think you can get this by just updating your visual calc like so:
Running sum = IF( NOT ISBLANK( [YTD] ), RUNNINGSUM([YTD]) )
I think you can get this by just updating your visual calc like so:
Running sum = IF( NOT ISBLANK( [YTD] ), RUNNINGSUM([YTD]) )
This worked like a dream, thank you !
Hi @Julier,
Thank you for providing information on your issue. I’ve reviewed your scenario and successfully replicated it using sample data on my end.
I’m sharing the working .pbix file below so you can explore the setup and DAX logic more clearly. Please feel free to open it and review how the relationships and measures are configured:
I hope this helps resolve your issue. If you have any questions or need further clarification, I’m happy to help.
Thanks for being part of the Microsoft Community!
Thank you for your reply unfortunately I need to be able to graph as below and as the data behind it has different sites attched to the sales I also need the graph to change when a slicer is selected, as you can see the chart flatlines at the last running total due to no sales from day 3 forward as yet, I want the current year line to grow as the month goes on
Hi @Julier , is this what you eyeing for? For achieving this, the code shall be as follows, thanks
Hello, Im not sure I'm explaining myself clearly, the data is in the format below and as I have used the running sum to plot the visual i need for it to not calculate a running sum for he remainder of the current month if there are no sales in the rest of the month as these will come in each day and then the line with continue to calaucate the running sum as the month goes on without flat lining
MonthYear | DayInMonth | Volume (SQM) |
Jul 24 | 1 | 11212 |
Jul 24 | 1 | 58307 |
Jul 25 | 1 | 2438 |
Jul 25 | 1 | 64838 |
Jul 25 | 1 | 23257 |
Jul 25 | 1 | 3297 |
Jul 25 | 1 | 4976 |
Jul 25 | 1 | 42634 |
Jun 25 | 2 | 22630 |
Jul 25 | 2 | 38497 |
Jul 24 | 2 | 19799 |
Jun 25 | 2 | 332 |
Jun 25 | 2 | 20040 |
Jun 25 | 2 | 13830 |
Jul 24 | 2 | 6576 |
Jun 25 | 3 | 8275 |
Jun 25 | 3 | 5833 |
Jun 25 | 3 | 9159 |
Jun 25 | 3 | 6084 |
Jun 25 | 3 | 7421 |
Jul-25 | 3 | 10980 |
Jul-25 | 3 | 26144 |
Jul-25 | 3 | 2789 |
Jun 25 | 3 | 13031 |
Jun 25 | 3 | 22700 |
Jun 25 | 3 | 9945 |
Jun 25 | 3 | 19630 |
Jun 24 | 5 | 13251 |
Jun 25 | 5 | 6904 |
Jun 25 | 5 | 11494 |
Jun 25 | 5 | 9022 |
Jun 25 | 5 | 5420 |
Jun 25 | 5 | 31514 |
Jun 25 | 5 | 13277 |
Jun 25 | 5 | 10149 |
Jun 24 | 5 | 3802 |
Jun 24 | 5 | 3948 |
Jun 24 | 5 | 7335 |
Jun 24 | 5 | 6082 |
Jun 24 | 5 | 7916 |
Jun 24 | 5 | 3360 |
Jul 24 | 5 | 2243 |
Jul 24 | 5 | 14733 |
Jul 24 | 5 | 5725 |
Jul 24 | 5 | 7459 |
Jul 24 | 5 | 7621 |
Jul 24 | 6 | 18677 |
Jul 24 | 6 | 6060 |
Jul 24 | 6 | 29212 |
Jul 24 | 6 | 8882 |
Jul 24 | 6 | 3469 |
Hi @Julier,
Thank you for the follow up!
After thoroughly reviewing the details you provided, I was able to reproduce the scenario, and it worked on my end. I have used the data which you provided and successfully implemented it.
I am also including .pbix file for your better understanding, please have a look into it:
Hope this will help you resolve your issue, if you need any further assistance, feel free to reach out.
Thank you for using Microsoft Community Forum.
Do you want to handle it in Excel, Power Query or Dax?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
9 | |
8 | |
6 | |
6 |