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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Gaïd
New Member

Implementation of a binary filter (0/1) with a condition over a variable number of logs

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. 

 

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 12 or more successive logs have the same consumption value, 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 REPLY 1
v-xjiin-msft
Solution Sage
Solution Sage

Hi @Gaïd,

 

In your scenario, could you please share us some sample data and its corresponding desired result if possible? It is hard to understand your requirement without these information.

 

Thanks,
Xi Jin.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.