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
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
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.