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
Anonymous
Not applicable

Division by categories

 

Hello guys, I would like to do the following division: 

Avg Call length equal to ("Engage Time" plus "Wrap Time") divide "Accepted"power bi.png

Yet my calculated result seems wrong as the table below

1 ACCEPTED SOLUTION

@Anonymous ,

 

 

1.jpg

 

 

Call Length = DIVIDE([Total Engage Time] + [Total Wrap Time] , SUM(Table9[Accepted]))
 
Total Engage Time = SUM(Table9[Engage Time])
 
Total Wrap Time = SUM(Table9[Wrap Time])
 
 
Regards,
HN

View solution in original post

11 REPLIES 11
amitchandak
Super User
Super User

@Anonymous , Something like this should work

 

divide( [Engage Time] + [Wrap Time], [Accepted])

or
divide( table[Engage Time] + table[Wrap Time], table[Accepted])

Anonymous
Not applicable

Thanks for your quick reply. 

 

I tired it before, yet still, fail to show the correct answer:(

 
 

power bi 2.png

Hi @Anonymous ,

 

DIVIDE (
    CALCULATE (
        SUMX (
           'Agent Reort 09',
            'Agent Reort 09'[Engage Time] + 'Agent Reort 09'[Wrap Time]
        )
    ),
    'Agent Reort 09'[Accepted]
)

 

Pl do let me know if this works.

 

Regards,

Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!

Anonymous
Not applicable

@harshnathani 

It doesn't come up with correct answer as well:(

 

@Anonymous ,Can you share sample data and sample output. Mark me @

Anonymous
Not applicable

@amitchandak 

Sample Data:

Agent NameQueueAcceptedEngage TimeWrap Time
aUNKNOWN19850
aVQ_Supervisor_Hotline16610
aUNKNOWN22735
aVQ_Supervisor_Hotline12236
aUNKNOWN428220
aVQ_ElderlyAndDisable14213
aVQ_Supervisor_Hotline1146
aUNKNOWN884270
aUNKNOWN102599196
aUNKNOWN858230
aUNKNOWN623238
aVQ_Supervisor_Hotline17888
aUNKNOWN85178958
aVQ_ElderlyAndDisable352365
aVQ_Supervisor_Hotline114813
aUNKNOWN53061143
aUNKNOWN618760
aVQ_Supervisor_Hotline1125
aUNKNOWN831051
aVQ_ElderlyAndDisable1283426
aVQ_Lang_English133875
aUNKNOWN621478
aVQ_Supervisor_Hotline1141378
aUNKNOWN43602147
aVQ_ElderlyAndDisable133082
aUNKNOWN112430
aUNKNOWN72130143
aUNKNOWN19810
aVQ_Supervisor_Hotline1345438
aUNKNOWN53224428
aVQ_Lang_English1556274
aUNKNOWN25410
aUNKNOWN311480
aUNKNOWN2109816
aVQ_Supervisor_Hotline1154
aUNKNOWN6195115

Sample Output 

Agent QueueTotal AcceptedTotal EngageTotal WrapAvg Call Length
aUNKNOWN103545372068549.5631
aVQ_Supervisor_Hotline9841978202.1111

@Anonymous ,

 

 

1.jpg

 

 

Call Length = DIVIDE([Total Engage Time] + [Total Wrap Time] , SUM(Table9[Accepted]))
 
Total Engage Time = SUM(Table9[Engage Time])
 
Total Wrap Time = SUM(Table9[Wrap Time])
 
 
Regards,
HN
Anonymous
Not applicable

@harshnathani 

 

Thanks for your advice. I did so following your instructions yet I found a wired thing that makes an inaccurate result.

 

 

The data in the data field following your advice:
Picture3.png

 

The data in the report view and the number was much larger than the data in data view: 
Picture4.png

 

@Anonymous ,

 

You are creating Calculated Column,

 

You should be creating Measures and not Calculated Columns.

 

1.jpg

 

Regards,

Harsh Nathani

Anonymous
Not applicable

@harshnathani 

Oh it works!! thanks for pointing out my mistakes. 

I hope you won't mind to answer me the following silly questions. I wonder what's the difference between Measure and Column, they are quite similar to me as both of them are working with Dax for calculation  

 Hi @Anonymous ,

 

The difference is the context of evaluation.

measure is evaluated in the context of the cell evaluated in a report or in a DAX query, whereas a calculated column is computed at the row level within the table

 

Regards,

Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!!

 

 

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.