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
arun2001mjl
Helper II
Helper II

Need to divide 2 table columns filtering Location. 1st Table in Number and 2nd Table in Text Format

Hello All,

 

Need help on below.

Table 1: Non voice contact details which is in Number format has sum of Non voice contacts as Email tickets, Chat tickets and Portal Tickets.

Table 2: Count of No of Agents.

Month is in Columns

 

Result: I need to divide Non voice contact details & Count of No of Agents. In Excel, iam getting correct result, but in PowerBI it is showing differently.

 

Attached Screenshot.

arun2001mjl_0-1649075843102.png

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @arun2001mjl ,

 

Based on your scenario, it is suggested to merge your two tables into one. Detailed steps:

 

1. I add one Index column in Table 1 to sort the Location column later.

Icey_1-1649296301342.png

Icey_2-1649296320272.png

 

2. UnPivot other columns both in Table 1 and Table 2.

Icey_3-1649296359721.png

Icey_4-1649296428960.png

 

3. Change column names based on your requirements and merge queries.

Icey_5-1649296488390.png

Icey_6-1649296580786.png

 

4. Uncheck "Enable load" of Table 2.

Icey_7-1649296612525.png

 

5. Close and Apply.

 

6. Sort Location column by Location Order column.

Icey_8-1649296723002.png

 

7. Create a measure.

Measure = 
DIVIDE (
    SUM ( 'Table 1'[Non voice contact details] ),
    SUM ( 'Table 1'[Count of No of Agents] )
)

Icey_0-1649296173474.png

 

 

Best Regards,

Icey

 

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

View solution in original post

2 REPLIES 2
arun2001mjl
Helper II
Helper II

In Table 1 & 2, i have multiple columns other than Delivery Location, Date, count of agents, non-voice contact details. If i Unpivot columns Table 1 & 2, it will disturb other visuals too. In this case, how to proceed further?

Icey
Community Support
Community Support

Hi @arun2001mjl ,

 

Based on your scenario, it is suggested to merge your two tables into one. Detailed steps:

 

1. I add one Index column in Table 1 to sort the Location column later.

Icey_1-1649296301342.png

Icey_2-1649296320272.png

 

2. UnPivot other columns both in Table 1 and Table 2.

Icey_3-1649296359721.png

Icey_4-1649296428960.png

 

3. Change column names based on your requirements and merge queries.

Icey_5-1649296488390.png

Icey_6-1649296580786.png

 

4. Uncheck "Enable load" of Table 2.

Icey_7-1649296612525.png

 

5. Close and Apply.

 

6. Sort Location column by Location Order column.

Icey_8-1649296723002.png

 

7. Create a measure.

Measure = 
DIVIDE (
    SUM ( 'Table 1'[Non voice contact details] ),
    SUM ( 'Table 1'[Count of No of Agents] )
)

Icey_0-1649296173474.png

 

 

Best Regards,

Icey

 

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

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.