cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nooneliveforeva
Frequent Visitor

Count number of not unique row

Hello all,

 For this data :

 

Location Date

LOCATIONDATE
LONDON2017
PARIS2016
LONDON2016
L.A2012
L.A2005
L.A2020
LONDON2017

 

Want :

2

I want to have a total count of not unique location

Thank you very much

1 ACCEPTED SOLUTION

Hey @v-huizhn-msft,

Very good, thank you very much Smiley Very Happy

View solution in original post

4 REPLIES 4
fhill
Resident Rockstar
Resident Rockstar

If you need the Date information, 'Duplicate' your Table in Query Editor and choose 'Group By' on the Location Column.  Use the default 'Count Rows', this gives the occurances of each Location.

 

On your visual (card probably) count Location and filter out 'Count'= 1.

 

If you need the other information, Relationship this new condensed tabel back to our original to any REALTED needs.

FOrrest




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Hi @fhill,

Thank you, i need this as a measure, how can i do that ?

Hi @nooneliveforeva,

I test using your formula, get exected result. Group by the table using Table3[LOCATION], then filter the summaried table where the count does not equal to 1.

Please create a measure using the formula, the "Table3" is name of sample table.

Measure = COUNTAX(FILTER(SUMMARIZE(Table3,Table3[LOCATION],"count",COUNTA(Table3[LOCATION])),[count]<>1),Table3[LOCATION])


Then create a card visual to show your result.

2.PNG

Best Regards,
Angelia

Hey @v-huizhn-msft,

Very good, thank you very much Smiley Very Happy

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors