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
ValentinBIA
Resolver I
Resolver I

Office occupation % heat map

Hi everyone,

 

I'm looking to make a heat map that indicates when a desk at an office is empty or used.

 

I have a dataset such as the following:

Desk IDDate of changeState
000111-01-2020 11:34:45  1
000111-01-2020 18:23:32  0
000112-01-2020 10:44:21  1
000112-01-2020 19:16:03  0
000211-01-2020 09:34:48  1
000211-01-2020 18:55:02  0
000212-01-2020 09:34:45  1

 

For example the first line shows someone sat on desk 0001 at 11:34:45 on the 11th, and the second line shows that he left the desk at 18:23:32 the same day.

 

What I am trying to get from this data is a heat map that shows office % occupation for every 15 minutes interval between 09:00 and 20:00.

 

Should I build a database based on this one that gives the state of a desk for each interval (which would mean more than 10 million lines in my dataset), or is there a way to create a heat map from this data alone, that could for each 15 minute interval look at the last known state and attribute it correctly ?

 

Thank you very much for you time.

1 REPLY 1

Hi @ValentinBIA ,

 

I would only save the change.

 

For example:

someone sat on desk 0001 at 11:34:45 on the 11th = +1

he left the desk at 18:23:32 the same day = -1

 

With a running total, you should be able to record the status for every point in time.

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


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.