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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Gaïd
New Member

Implementation of a binary filter (0/1) with a condition over a variable sliding period

Hello everyone!

 

I'm currently working on a dataset of over 11M rows. 1 row represents what we call a log (the consumption and the GPS location for a car). A car sends us a log every 5min but some of the logs are missing.

 

The columns of the dataset are the following:

  • Numero_car: number assigned to a car
  • Date_echantillonnage: date and time of creation of a log
  • Latitude: latitude at the time of creation of the log
  • Longitude: longitude at the time of creation of the log
  • Consumption: fuel consumed by the car during 5 min (between 2 logs).

 

For a car, when all the logs are null for 24 hours, I’d like to remove those logs of my calculation by implementing a binary filter (0/1). 

 

Does anyone have an idea on how to proceed to implement such a thing in Power BI Desktop?

 

Thank you for your help!

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

Tough to say exactly without sample/example data but check out the technique here:

 

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

 

Basically, you should be able to use that technique to calculate how long between logs essentially.


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

1 REPLY 1
Greg_Deckler
Super User
Super User

Tough to say exactly without sample/example data but check out the technique here:

 

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

 

Basically, you should be able to use that technique to calculate how long between logs essentially.


@ 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!:
Mastering Power BI 2nd Edition

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

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

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.