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
Tallis
Frequent Visitor

Google Location History

I hope someone is kind enough to help me with my project....

I extracted my location history from Google Takeout (JSON format). 
My intention was to use various Power BI visuals to "tell a story" of my travels (e.g. Route Map, Flow Map, etc)
My problem is the huge volume of data. 
Google has noted my location 2059 times a day.
I have 3,738,157 rows of data from 1,815 days. (11/17/2013 to 11/6/2018).  

I want to remove the days (rows) where i generally stayed in one location for the day.
However, if it is a date where I traveled long distance, say, from one city to another, i want to keep those rows even though they happen on the same date. 
Can anyone provide a formula or process to remove the rows with duplicate dates?  


And, if anyone has some cool ideas, such as bring in another table for comparing my locations and dates, i would love to hear them.

thank you.

 

1 ACCEPTED SOLUTION
affan
Solution Sage
Solution Sage

Hi @Tallis,

 

You can use group by option in the Power Query editor.

See the below illustration for your reference on how to do this.

Group by location n date.gif

 

 

 

 

If this helped you, please mark this post as an accepted solution and like to give KUDOS .

 

Regards,

Affan

View solution in original post

2 REPLIES 2
affan
Solution Sage
Solution Sage

Hi @Tallis,

 

You can use group by option in the Power Query editor.

See the below illustration for your reference on how to do this.

Group by location n date.gif

 

 

 

 

If this helped you, please mark this post as an accepted solution and like to give KUDOS .

 

Regards,

Affan

Yggdrasill
Responsive Resident
Responsive Resident

Sounds like a "Remove duplicate" problem to me.

 

If you shorten the coordinates and remove duplicates (in query editor), do you then have a table with fewer points but still your key locations ?

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.