Skip to main content
Showing results for 
Search instead for 
Did you mean: 

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.

New Member

How to display a 30 day count of values on a daily basis on a line chart in Power BI.

I've got the folllowing DAX measure, where I am trying to calculate the number of "Completed" treatments for a 30 day period.


Test Measure =
Treatments [Treatment Status] = "Completed")),
Treatments[Treatment Date] >= Treatments[Treatment Date] - 30)
Then I create a line chart, where I select my Test Measure and the date from a calendar table (I want to show this value on a daily basis)


But what the graph is showing, is the number of Completed treatments on a daily basis, what I want to do is for it to show me on a daily basis the number of "Completed" treatments for 30 days. How can I achieve this?

Super User
Super User

It sounds like you want a running total.. I'd recommend watching this 7 minute video - dax code around 4 minutes in if you want to skip straight to it!

Helpful resources

Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City


Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors