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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
arun2001mjl
Helper II
Helper II

Need calculation on Voice contacts with Agent names and Non Voice contacts with out Agent Names

Hello All,

 

I have 2 Tables in PowerBI.. Both are different files.

1st Table with Voice Data.

arun2001mjl_0-1650702936781.png

 

2nd Table with Non Voice data.

arun2001mjl_1-1650702984059.png

 

Now i need add "No of Calls handled" + "No of non-voice handled" agent wise.

 

I need the result as in E Column in PowerBI. I tried the measure but iam not able to spilt "No of non-voice handled" by agent wise.

arun2001mjl_2-1650703066810.png

Regards

Arun

 

1 ACCEPTED SOLUTION
v-luwang-msft
Community Support
Community Support

Hi @arun2001mjl ,

You need to create a new column by the below dax:

 

Column =
LOOKUPVALUE (
    'Table 2'[No of Non-Voice Handled],
    'Table 2'[Delivery Location], Table1[Delivery Location],
    'Table 2'[Date], Table1[Date]
) + Table1[No of Calls Handled]

 

vluwangmsft_0-1651738894607.png

And if you want to create measure ,try the below:

Column = 
LOOKUPVALUE (
    'Table 2'[No of Non-Voice Handled],
    'Table 2'[Delivery Location], Table1[Delivery Location],
    'Table 2'[Date], Table1[Date]
) + Table1[No of Calls Handled]

vluwangmsft_1-1651739133296.png

 

 

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


Best Regards

Lucien

View solution in original post

7 REPLIES 7
arun2001mjl
Helper II
Helper II

Hi,

 

Iam getting this error when i use below Dax

Column:

 

Column =
LOOKUPVALUE (
    'Table 2'[No of Non-Voice Handled],
    'Table 2'[Delivery Location], Table1[Delivery Location],
    'Table 2'[Date], Table1[Date]
) + Table1[No of Calls Handled]

 

Measure:

Column = 
LOOKUPVALUE (
    'Table 2'[No of Non-Voice Handled],
    'Table 2'[Delivery Location], Table1[Delivery Location],
    'Table 2'[Date], Table1[Date]
) + Table1[No of Calls Handled]

Note: For no of Non Voice Contacts already i have calculation in PowerBI.

Email + chat + Web + Portal = Non Voice Contacts.

 

When i use above your dax measure, iam getting below error.

 

arun2001mjl_1-1652710927254.png

 

Please assist.

Hi @arun2001mjl ,

Generally, this error occurs because the query returns more than one value, for example, A1 in columnA in table A matches columnA1 in table B and gets more than one value of columnA2 in table B. This should be checked for duplicate data.

 

 

Best Regards

Lucien

v-luwang-msft
Community Support
Community Support

Hi @arun2001mjl ,

You need to create a new column by the below dax:

 

Column =
LOOKUPVALUE (
    'Table 2'[No of Non-Voice Handled],
    'Table 2'[Delivery Location], Table1[Delivery Location],
    'Table 2'[Date], Table1[Date]
) + Table1[No of Calls Handled]

 

vluwangmsft_0-1651738894607.png

And if you want to create measure ,try the below:

Column = 
LOOKUPVALUE (
    'Table 2'[No of Non-Voice Handled],
    'Table 2'[Delivery Location], Table1[Delivery Location],
    'Table 2'[Date], Table1[Date]
) + Table1[No of Calls Handled]

vluwangmsft_1-1651739133296.png

 

 

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


Best Regards

Lucien

arun2001mjl
Helper II
Helper II

I shared the output in text format.. Still no solution found.

arun2001mjl
Helper II
Helper II

Delivery Location is related with both the tables.

 

Voice ContactsTable 1    Non Voice ContactsTable 2 
Agent NameDelivery LocationDateNo of Calls HandledI need result as followups Delivery LocationDateNo of Non-Voice Handled
Agent 1India21-Dec210D3 + I3 India21-Dec88
Agent 2India21-Dec313D4 + I3 Australia21-Dec60
Agent 3London21-Dec213D5 + I5 London21-Dec90
Agent 4India21-Dec435D6 + I3 Japan21-Dec77
Agent 5China21-Dec234D7 + I7 China21-Dec66
Agent 1London21-Nov322D8 + I10 India21-Nov99
Agent 2Australia21-Nov676D9 + I9 Australia21-Nov54
Agent 3China21-Nov645D10 + I12 London21-Nov67
Agent 4Japan21-Nov34D11 + I11 Japan21-Nov87
Agent 5London21-Nov653D12 = I10 China21-Nov34
Samarth_18
Community Champion
Community Champion

Hi @arun2001mjl ,

 

Could you please share the data in the text format instead of screenshot?

Apart from that do you have any relationship between these two table?

 

BR,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

arun2001mjl
Helper II
Helper II

Please replace J with I.

arun2001mjl_0-1650703229788.png

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.