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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
vissvess
Helper V
Helper V

Max utilization at any point - reg

Hi,

 

I have a dataset as shown below.

New1.JPG

There are two calculated columns in it. The DAX for both is as follows.

 

Duration = 
var __currentCreator = 'Build routing'[Creator]
var __currentRouting = 'Build routing'[Unit Status]
var __currentDate = 'Build routing'[Date]
var __currentTime = 'Build routing'[End Time]
var __previousTime =
    MAXX(
        FILTER(
            'Build routing',
            'Build routing'[Creator] = __currentCreator
            && 'Build routing'[Date] = __currentDate
            && 'Build routing'[Unit Status] = __currentRouting
            && 'Build routing'[End Time] < __currentTime
        ),
        'Build routing'[End Time]
    )
var __timeDiff = DATEDIFF(__previousTime, __currentTime, SECOND)
var __Duration = IF(__timeDiff>360,BLANK(),__timeDiff)
return
    __Duration
Start Time = 
var endtime = 'Build routing'[End Time]
var minute = ROUNDDOWN(DIVIDE('Build routing'[Duration],60),0)
var second = MOD('Build routing'[Duration],60)
return endtime - TIME(0,minute,second)

With this data I have built a gantt-like chart for showing the usage pattern as below using 'as timeline' custom visual from marketplace. The below is with filter applied for a particular date.

New2.JPG

 

 

 

 

 

 

The visual uses the creator column on Y axis and start and end time accross X to show usage as above with filter for date.

 

Since the visual was built for project timeline for date/days and I used it for time data, the X axis values are shown as :10.

 

My query is, I need a measure. The measure to max count of number of creator at any point of time in the particular day.

For example, the above image shows that arond 9~10 AM, there are 5 creators in place and that is the maximum accross the day, despite overall 8 appeared out of 14 creators accross the day.

 

Also, Could anyone suggest me a visual for appropriate x axis correction.

 

Any small help would be greatly thankful

 

Thanks

1 REPLY 1
vissvess
Helper V
Helper V

Anyone could kindly help me with this.??!

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors