Skip to main content
cancel
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.

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!:
The Definitive Guide to Power Query (M)

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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
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

PBI_APRIL_CAROUSEL1

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.