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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
coxy
New Member

Graph showing popular times

Hi everyone,

 

Very much a newbie to PowerBI so apologies if this is a silly question.  I have a large dataset which shows meeting room bookings for the year to date.  This includes seperate fields for the start time and then end time of each meeting.  I'd like to produce a graph showing the most popular time of day for meetings so that users have a high level view of when they would be most likely to obtain a meeting room.  Sadly I've no idea how to actually do this!  Is anyone able to set me on the right path please?

3 REPLIES 3
mparowski
Advocate I
Advocate I

I'm curious where this dataset came from.  I'm trying to do a similar analysis in my organization, where meeting rooms are tracked in Office 365, and it seems like it is difficult to get this sort of information out of the system.

v-haibl-msft
Microsoft Employee
Microsoft Employee

@coxy

 

I think you can first create another table which includes all the working minutes. Then we can create a new calculated column in this table which counts the used meeting rooms.

I’ve uploaded my .pbix file here for reference. Please refer to following steps for details.

 

I assume we have an original table as below. We can use the function of split column in Query Editor to split the columns of Start Time and End Time.

Graph showing popular times_2.jpg

 

In another working minutes table, we can create a column with following DAX formula.

Count = 
CALCULATE (
    COUNTROWS ( Table1 ),
    FILTER (
        ALL ( Table1 ),
        Table1[Start Time.2] <= Table2[Time.2]
            && Table1[End Time.2] >= Table2[Time.2]
    )
)

Graph showing popular times_4.jpg

 

At last, drag the stacked area chart into your canvas as below.

Graph showing popular times_5.jpg

 

Best Regards,

Herbert

CahabaData
Memorable Member
Memorable Member

Start a Table Visual template

 

Drag the Start Time field from the Field pane into the Visualization Pane Values field

 

....that will create a list of all start times

 

Repeat - this part is not intuitive - Drag the Start Time field a second time right on top of the first....and now you'll have the same column twice.

 

Then in the second field, in the Visualizations Pane - use its drop down to select Count

 

 

www.CahabaData.com

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.