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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Running Sum by datetime with additional filters

This is my first time posting and I'm new to PowerBI, so I apologize for the confusion. 

I've searched for a couple of days, but haven't been able to find a solution to obtain the counts I need..

 

Brief overview, I have a set of text files that I'm importing - the files include:

Timestamp (date\time), Machine Name, Event Type (there are about 30 different event types), Event Status (Success or Fail), and count.  Each machine writes data to these files every 5 minutes.

 

Of note - the "count" is an accumulating total from the last time the machine was restarted (which is just whenever someone decided to restart). Thus, the count for XYZ event type could be 10 at 1am, but that 10 would really count towards the total for the previous day. The second issue is that when they restart the machine, the count returns to zero. So, if at 11am the count for XYZ = 160 and at 11:01am they restart, the count will return back to zero....then start building until 11:59pm (so at 11:59pm XYZ = 50). 

So for this example, the total would be  160 (11am count) + 50 (11:59pm count) - 10 (from previous day) 

 

I need a report that will provide the total number of failed events by event type per day.

(the total number of failed events would be a combination of all machines).

 

thank you!

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Can you share sample data? This article is not exactly like what you want but you may find some of the techniques useful for your situation.

 

https://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/339...

 



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

Thank you for the article - It is very descriptive!  

It is very helpful - I'm still trying to work through it but would appreciate any additional help.

 

I'm not sure how to get the data aligned in here, hope its okay that I post a picture.

 

thank you!!

 

example.png

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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