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

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

Reply
MorganBauwens
New Member

Count multi-callers in multiple services

Hello all,

 

I'd love to get some help with DAX.

 

Here is the context : 

We have a hotline with multiple call-centers. All the events are recorded in a PowerBI Dataset. Here are the main columns that I focus on :

Table : ServiceTask

FieldMeaningExample
InitialSipFromCustomer's phone number+330636656565@voiipdomain.be
InitialSipToCall-center choosed by customercall_center1@ourdomain.be
StartedDateIDDate (integer)20221231
TaskResultIDResult of the call (handled, not handled...)5

 

My goal is to create a measure with DAX that will count, for each day, the number of customers that called us more than one time and choosed at least two different contact centers ("shoppers"), and having a task result of 1 or 5.

So : 

Customer 1 called us twice, but chosed the same contact center in both occasion => do not count

Customer 2 called us twice, chosed call-center 1 the first time, and call-center 4 the second time => count

 

My final goal is to create a visual (table) a bit like this : 

StartedDateIDCount InitialSipFromCount Shoppers
2023010125641201
2023010228451540
2023010335021745

 

Being connected live to the dataset, I am not able to create or modify any column or field.

Is there anything I can do ?

 

Thanks a lot for your time and help ! 🙂 

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

Try

Cust called twice =
VAR SummaryTable =
    ADDCOLUMNS (
        VALUES ( 'Service Task'[Initial SIP from] ),
        "@num call centres", CALCULATE ( DISTINCTCOUNT ( 'Service Task'[Initial SIP to] ) )
    )
VAR Result =
    COUNTROWS ( FILTER ( SummaryTable, [@num call centres] >= 2 ) )
RETURN
    Result

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

Try

Cust called twice =
VAR SummaryTable =
    ADDCOLUMNS (
        VALUES ( 'Service Task'[Initial SIP from] ),
        "@num call centres", CALCULATE ( DISTINCTCOUNT ( 'Service Task'[Initial SIP to] ) )
    )
VAR Result =
    COUNTROWS ( FILTER ( SummaryTable, [@num call centres] >= 2 ) )
RETURN
    Result

That is exactly what I needed, @johnt75 !
Thanks a lot for your help !

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.