Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
suji
Advocate I
Advocate I

count of repeated users

Hi Frnz,

 

I am new to Power BI. I have below req in my project.

 

Need to show the total count of users, count of distinct users , and count of repeated users for the day.

 

ID Frame        Date                              UserName                

1                     7/1/2016 330 PM         Suresh                   

2                     7/1/2016 330 PM         John3

3                     7/1/2016 337 PM         Mike     

4                     7/1/2016 350 PM         Suresh 

5                     7/1/2016 351 PM         Mike     

6                     7/1/2016 358 PM         Mike     

 

I am able to get Total count and -6, distinct count -3.  But i need to get the count of repeated users -2  ( Suresh and Mike)

This repeated user count i need to show in a label

 

 

Thanks in advance.

 

Regards,

Suresh Peddirsi.

1 ACCEPTED SOLUTION

Hi,

 

You hv to create 2 measures. Sheet12 is my Table in the below formula

 

1. UsersLevelCount= CALCULATE(CountRows(Sheet12),ALLEXCEPT(Sheet12,Sheet12[UserName ]))

2. Repeat Users=CALCULATE(DISTINCTCOUNT(Sheet12[UserName ]),FILTER(Sheet12,Sheet12[Measure]>1))

 

View solution in original post

4 REPLIES 4
BhaveshPatel
Community Champion
Community Champion

You can use a measure like this:

 

RepeatedCountsSuresh:=CALCULATE(COUNTA(MyTable[User Name]),MyTable[User Name]="Suresh")

 

 

Similarly you can count Mike as well.

 

or you can use ALLSELECTED where on selecting slicers, it will show count of particular username.

 

=CALCULATE(COUNTA(MyTable[User Name]), ALLSELECTED(MyTable[User Name]))

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

You can create a measure

 

Repeated Users=CountRows(MyTable).

 

Then add the user name and the measure into the rows and see the results

Hi Bhiswas and Thiyags,

 

Thanks for your quick response.

My result should not be on selection based. I jst need to show the repeated user count on a label.

if the user record is inserted more then two times a day, i need to show that person as repeated user.

 

if i have total 5 records in the table, in that user1 repeated 2 times, user2 repeated 2 times and user3 is only one time (total 5)

 

I have to show repeated user count, that is 2 ( as only 2 users are recorded more then 2 times)

 

 

Hi,

 

You hv to create 2 measures. Sheet12 is my Table in the below formula

 

1. UsersLevelCount= CALCULATE(CountRows(Sheet12),ALLEXCEPT(Sheet12,Sheet12[UserName ]))

2. Repeat Users=CALCULATE(DISTINCTCOUNT(Sheet12[UserName ]),FILTER(Sheet12,Sheet12[Measure]>1))

 

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors