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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
gspritchard
Regular Visitor

How to present data from a matrix style csv (date/time vs location)

Hi, 

I am very new to Power BI but have hoped to use it to present some utilisation data from a building. The data is exported in a csv format with location in the first column, then the rest of the columns spanning date/time in 1hr increments. The data points are they averages of space utilisation in a decimal (a % of 100). 

I have been doing a bit of trial and error and found that it works best when transposed - locations as row headings. As when you are looking at a month of data, 24-hours a day, you exceed 700 columns. 

 

However I have hit a couple of points:

1. I cannot filter locations as each is their own data column

2. You can only seem to slice by time on a dropdown list

3. I wish to add a "league table" of max / min utilisated rooms. 

4. I hope to use with OKViz Synoptic Panel at the end to show room utilisation, I think the data needs presenting differently to achieve this. 

 

Any advise? Is it something that needs data manipulation before analysis?

 

Screenshot 2020-03-13 at 9.21.47 am.jpgScreenshot 2020-03-13 at 9.22.18 am.jpg

 

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

Hi,

Try this: 

Highlight all the location columns in power query:
image.png
Then press unpivot columns:
image.png
Should give you the following result:
image.png

As for the DateTime, you will need to create a datetime column by combining your date and time columns. 

Format [Date] to Date type, and [Time] to Time type:
image.png
To:


Then change the data format of your new column to datetime:
image.png

That should be all i think,

Br,
J

 


Connect on LinkedIn

View solution in original post

2 REPLIES 2
tex628
Community Champion
Community Champion

Hi,

Try this: 

Highlight all the location columns in power query:
image.png
Then press unpivot columns:
image.png
Should give you the following result:
image.png

As for the DateTime, you will need to create a datetime column by combining your date and time columns. 

Format [Date] to Date type, and [Time] to Time type:
image.png
To:


Then change the data format of your new column to datetime:
image.png

That should be all i think,

Br,
J

 


Connect on LinkedIn

Thank you - appeared to do the job nicely. I have a few more queries but for now this works to get me started on formatting etc. 

 

Screenshot 2020-03-13 14.23.41.jpgScreenshot 2020-03-13 14.23.35.jpg

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.