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.
I'm trying to create a running total for the number of open data sets our department has published by month, so that we can see how many data sets each division has published through any given month. There are months where only one division published an open data set, and months where no data sets were published at all. Here's my data:
What I ultimately want is a simple graph like this:
But using this formula:
I get this instead: In a matrix & a bar graph.
I think what I need is for the matrix values to fill in the prior value when there is no new data, instead of returning a blank. I can't for the life of me figure out how to do this.
So in summary, I'm looking to:
Any help would be much appreciated!
Solved! Go to Solution.
@Anonymous,
Firstly, create a date table in Power BI Desktop following the guide in this blog.
Secondly, create relationship using date field of the date table and pub_date field of Open Data table.
Thirdly, create measure using DAX below.
Running OD = CALCULATE(COUNT('Open Data'[ds_name]),FILTER(ALL('Date'),'Date'[DateKey]<=MAX('Date'[DateKey])))
At last, drag date field of date table to X-Axis of your chart.
Regards,
Lydia
@Anonymous,
Firstly, create a date table in Power BI Desktop following the guide in this blog.
Secondly, create relationship using date field of the date table and pub_date field of Open Data table.
Thirdly, create measure using DAX below.
Running OD = CALCULATE(COUNT('Open Data'[ds_name]),FILTER(ALL('Date'),'Date'[DateKey]<=MAX('Date'[DateKey])))
At last, drag date field of date table to X-Axis of your chart.
Regards,
Lydia
how to stop the running sum on the last date?
Thanks.
I have the same issue on how to stop the running sum on the last date of data. Is it possible ?
Your solution was so helpful! See below for the viz I was able to create. As you can see I've made a combination bar & line chart. I just have one more question:
How can I get the bars to stop appearing after today's date, while the line continues? I want to be able to see the goal into future months without seeing the actual progress made. Is there a way to apply the "Today()" function to the running total calculation, so that the calculation only shows the running total up to today's date, and doesn't project out into the future?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
100 | |
78 | |
75 | |
50 |
User | Count |
---|---|
144 | |
109 | |
108 | |
88 | |
61 |