cancel
Showing results for
Did you mean:
Frequent Visitor

## Get Distinct Call ID's when same call ID is in different transfer Numbers

Hi @Team ,

I have two columns in my data one is Call ID and other is Transfer No as below

 Call ID Transfer No 75643 1 75643 2 75643 3 17890 1 17890 2 17890 3 17890 4 23890 1 45678 1

I would like to show this data in a table visual, I should get unique count of the call ID's, if call ID's has max num as 4 I would like to count it in transfer no 4 only. and it should not be in any other transfer numbers.

Result I need :

 Transfer No Count of Call ID 1 2 2 0 3 1 4 1

1 ACCEPTED SOLUTION
Community Support

Hi, @vanama3

You can create a second mesure based on the first measure , like this:

``Measure 2 = SUMX( VALUES('Table'[Transfer No]), [Measure])``

Then we can meet your need:

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!

Best Regards,

Aniya Zhang

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

3 REPLIES 3
Community Support

Hi , @vanama3

Here are the steps you can refer to :
(1)We can click " New Column" to create a calculated column :

``````Max No = var _id = [Call ID]
var _t = FILTER( 'Table', 'Table'[Call ID] =_id)
return
MAXX(_t , [Transfer No])``````

(2)Then we can create a measure :

``````Measure = var _curNo = MAX('Table'[Transfer No])
var _t=DISTINCT(SELECTCOLUMNS( FILTER( ALLSELECTED('Table') , 'Table'[Max No] =_curNo) ,"Call ID" , [Call ID]))
return
COUNTROWS(_t)+0``````

(3)Then we can put the measure on the visual and we can meet your need:

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!

Best Regards,

Aniya Zhang

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

Frequent Visitor

The total is not coming correctly, Total should also come correctly.

Thanks

Community Support

Hi, @vanama3

You can create a second mesure based on the first measure , like this:

``Measure 2 = SUMX( VALUES('Table'[Transfer No]), [Measure])``

Then we can meet your need:

Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!

Best Regards,

Aniya Zhang

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

Announcements

#### 2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

#### Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

#### Business Application LATAM Summit 2023

Join the biggest FREE Business Applications Event in LATAM this February.

#### Global Power Platform Bootcamp

In this bootcamp we will deep-dive into Microsoft’s Power Platform stack with hands-on sessions and labs, delivered to you by experts and community leaders.

Top Solution Authors
Top Kudoed Authors