cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Anonymous
Not applicable

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 IDTransfer No
756431
756432
756433
178901
178902
178903
178904
238901
456781

 

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
12
20
31
41

Please help me.

1 ACCEPTED SOLUTION

Hi, @Anonymous 

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:

vyueyunzhmsft_0-1670406861875.png

 

 

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

View solution in original post

3 REPLIES 3
v-yueyunzh-msft
Community Support
Community Support

Hi , @Anonymous 

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:

vyueyunzhmsft_0-1670381698527.png

 

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

Anonymous
Not applicable

Hi  @v-yueyunzh-msft ,

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

Thanks

 

Hi, @Anonymous 

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:

vyueyunzhmsft_0-1670406861875.png

 

 

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

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors