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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Line chart rolling average status count

Hi,

 

 

I have departmental project data. This includes the below fields and values:

 

 

ProjectID: 111, 222, 333


RequestedDate: 10/03/2018, 12/05/2018, 12/05/2018


ResolvedDate: 15/03/2018, 14/05/2018, 05/09/2018


Status: Closed, Closed, Closed

 

 

From a user defined RequestedDate, I need to dynamically populate the correct status at that time, for example, if the user selected 13/05/2018, the status' would be 111: Closed, 222: Open, 333: Open. From this date, I need to go back 1 month and calculate the average based on the ProjectID counts for both "Open" and "Closed" status'. This would repeat back through my data on all previous request dates. I then need to plot these average values on a line chart for both Open and Closed status' for a historical comparison.

 

 

Any help appreciated.

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Well, you are going to need something like these two Quick Measures which figure out a status at a point in time based upon a date or multiple dates within the data.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks for your reply.

 

The "Open Tickets" url best suits my requirement but I'm not sure how to add a "Status" column to "tmpTable" beside "ID" and "Date" with the logic: IF [Date] = [Effective Date] THEN "Closed" ELSE "Open"

 

I would then add "Status" to my line charts legend to produce two comparable line charts based on the [ID] count value.

 

Any help appreciated.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.