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

Calls occur simultaneously in the same period of time

Hello.
I have a problem and I don't know how to solve it.
We have a table with different groups of telephone calls, a call center. I want to know how many Calls occur simultaneously in the same period of time, according to the filtered period. The ones where the start time and end time are within the same time window, returning these quantities, and allowing you to filter them.
Thanks a lot for the help.

 

 Hora Inicio Hora fimDuracaoOrigemDestinoRecurso
07/08/202110:11:0010:11:0000:00:00ExternoRamal 301Fila 1
07/08/202110:11:0010:11:3700:00:37ExternoRamal 300Fila 1
07/08/202110:11:0010:11:3900:00:39ExternoRamal 300Fila 2
07/08/202110:13:0010:13:2500:00:25ExternoRamal 301Fila 2
07/08/202110:15:0010:16:1700:01:17ExternoRamal 300Fila 2
07/08/202110:16:0010:17:0200:01:02Ramal 211ExternoFila 1
07/08/202110:17:0010:17:0000:00:00Ramal 212ExternoFila 1
07/08/202110:18:0010:18:3000:00:30Ramal 213ExternoFila 2
07/08/202110:19:0010:19:0000:00:00Ramal 214ExternoFila 3

 

4 REPLIES 4
VahidDM
Super User
Super User

Hi @Sergio_Rocha 

 

Try this measure:

Calls occur = 
VAR _Inicio =
    MIN ( 'Table'[Hora Inicio] )
VAR _fim =
    MAX ( 'Table'[ Hora fim] )
RETURN
    CALCULATE (
        COUNTROWS ( 'Table' ),
        FILTER (
            ALL ( 'Table' ),
            'Table'[Hora Inicio] >= _Inicio
                && 'Table'[ Hora fim] <= _fim
        )
    )

 

Output:

recording (7).gif

If this post helps, then please consider Accept it as the solu tion to help the other members find it more quickly.

Appreciate your Kudos✌️!!

Thank you so much for your help Vahid.

I tested the Measure and it worked very well !!! Congratulations and Thank you...

But Vahid's intention is to know within a period, how many connections occurred simultaneously... But why is this information Important? What is the application? As it is a CallCenter, the idea is to identify if there is a need to increase the number of channels. By identifying the occupancy rate in specific periods (Simultaneous Calls) we can identify whether there is a need to increase channels.

Greg_Deckler
Super User
Super User

@Sergio_Rocha 
Take a look at these two Quick Measures as I think you want something like them.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Open-Tickets/m-p/409364
https://community.powerbi.com/t5/Quick-Measures-Gallery/Periodic-Billing/m-p/409365


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks Greg,
I was confused to understand some of the dax codes you used.
Please could you help me with something simpler, maybe using my template?

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.

Top Solution Authors