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
CMC
Helper I
Helper I

DistinctCount Not Counting Duplicate Entries

I'm using a measure to add the total number of values in the Customer Value column, however as there are duplicate values in the first two columns the Customer Value column is ingoring the duplicates values.  Whats an easy fix to count all values when there are duplicates involved?

Im using this -> Measure = distinctcount('Table'[Sales Rep]) *5 / Table[Customer Value]

 

Sales RepCustomer NameCustomer IDCustomer Value 
Bob ACustomer ACUST-6781.0
Bob ACustomer ACUST-6781.0
FrankCustomer BCUST-1241.5
FrankCustomer BCUST-1242.5
MarkCustomer CCUST-6902.5
1 ACCEPTED SOLUTION
foucaultf
Frequent Visitor

Hi @CMC 

 

Please try following steps:

 

1.Please create a measure as shown below.

 

Measure = SUM('Sheet1'[Customer Value])/5

 

foucaultf_0-1660039062067.png

 

2.Please create a measure called Sales Rep Utilisation %.

 

Sales Rep Utilisation % = AVERAGEX('Sheet1',[Measure])

 

foucaultf_1-1660039062069.png

 

3.In report page, you can get result you want.

foucaultf_2-1660039062072.png

 

Best Regards

View solution in original post

4 REPLIES 4
foucaultf
Frequent Visitor

Hi @CMC 

 

Please try following steps:

 

1.Please create a measure as shown below.

 

Measure = SUM('Sheet1'[Customer Value])/5

 

foucaultf_0-1660039062067.png

 

2.Please create a measure called Sales Rep Utilisation %.

 

Sales Rep Utilisation % = AVERAGEX('Sheet1',[Measure])

 

foucaultf_1-1660039062069.png

 

3.In report page, you can get result you want.

foucaultf_2-1660039062072.png

 

Best Regards

CMC
Helper I
Helper I

Here is a copy of the Dashboard. All I Want to change is the %170 value from a total value to an average (%34 average) across all sales reps and just for that card. 

 

CMC_1-1659591587117.png

 

 

 

technolog
Super User
Super User

You should use CALCULATE with changing context.

Could you give more information about your calculation?

hi please see above for more info

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