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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Get the distinct count of "each" user in the column

Screenshot 2020-03-14 at 12.25.42 AM.png

 

I am trying to get the distinct count of "each" user in the column "Ticket opened by", any help on this please...

I am trying to find the numbers for only few users from the list.

There are more than 1000 users in that list, i just want 50 hand picked users (not top 10) but Unique individuals.

 

12 REPLIES 12
amitchandak
Super User
Super User

Not very clear.

you can use distinctcount(Table[Usename]) in measure and can get

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak I tried that already, that does not serve the purpose.

 

My problem is: I have a column with 1000+ names in it which also have unique TKT number for each row in another column.

 

I am trying to find out the count of TKT numbers for few of them from the list (Not Top 10), but get the count of TKT numbers for few of them in the list of users from the 1000+ list.

 

@Anonymous , can you explain with an example.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak 

 

Screenshot 2020-03-14 at 12.25.42 AM.png

 

Check the above attached image.

 

Column A: Ticket Numbers

Column B: Names

 

I am trying to get Count of Ticket numbers for few of them from Column B.

 

Ex: Number of ticket for Zhou, Lin

 

@Anonymous ,

If you put Ticket opened by and Disctinctcount(table[ticketnumber]) in a matrix or table, is it not giving you the information you wanted.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak I have tried that, but it gives me the count of everyone in the list. But as I told that does not serve the purpose, I am trying to get Count of Ticket numbers for few of them from Column B, not all and not Top N, I am looking for few hand picked from that list of users.

 

Hi @Anonymous ,

 

I made a data model like this:

gg2.PNG

First, I used "Remove Duplicates rows" in Edit Queries and got this:

gg3.PNG

Second, I created a table visual and a slicer visual:

gg6.PNG

"I am looking for few hand picked from that list of users."

I don't understand the rules you would like to use to select users in the list. Maybe you can use the slicer and enable the multi-select function.

gg7.PNG

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@v-lionel-msft This will also not work for me as the name field is fixed for me on my Dashboard, which is flowing in from a different excel sheet..

Hi @Anonymous ,

 

I took a closer look, and my understanding is that you want to find out who has the unique [Ticket Number] in the list, maybe you can create a measure:

Measure = 
VAR x = 
CALCULATE(
    COUNT(Sheet1[Names]),
    ALLEXCEPT(
        Sheet1,
        Sheet1[Names]
    )
)
RETURN
IF(
    x = 1,
    MAX(Sheet1[Names]),
    BLANK()
)

jj1.PNG

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@v-lionel-msft I am sorry, but no.

 

I am looking to Get the distinct count of "each" user in the column and i have a "Fixed" user which i have in a different sheet... I want to get the distinct count of each user (Handpicked few(say 30) from the list which has 1000+ users)... I want the numbers to show only for those 30 users not all of them....

Hi @Anonymous ,

Has your problem been solved?

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous ,

 

"I want to get the distinct count of each user (Handpicked few(say 30) from the list which has 1000+ users)"

Sorry, I still don't quite understand. I'm not sure what rules you want to use to filter out these 30 people.

Maybe what you want is this?

xx17.PNG

 

Or this?

xx18.PNGxx19.PNGxx20.PNG

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors