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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
yyhk123
Frequent Visitor

Create a table with distint value

Hello,
I am trying to create a table with distint value, but how can I create it?
for example, i have a table as below:

Name | Age | School
Chris,   13,   Harvard
John,  18,  UCLA
Sue, 18, Harvard
Jason, 17, Yale


from the table above, i want to create a column or a table that contains the school
School
1. Harvard
2. UCLA
3. Yale
(no need to number them)

1 ACCEPTED SOLUTION
Shaurya
Memorable Member
Memorable Member

Hi @yyhk123,

 

That's simple. Just use:

 

Distinct = DISTINCT('Table'[School])

 

In case you don't want just the list of names but other data also, like the number of students in that school, then use:

 

Count = SUMMARIZE('Table','Table'[School],"Number of Students",COUNT('Table'[Name]))

 

Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

View solution in original post

1 REPLY 1
Shaurya
Memorable Member
Memorable Member

Hi @yyhk123,

 

That's simple. Just use:

 

Distinct = DISTINCT('Table'[School])

 

In case you don't want just the list of names but other data also, like the number of students in that school, then use:

 

Count = SUMMARIZE('Table','Table'[School],"Number of Students",COUNT('Table'[Name]))

 

Works for you? Mark this post as a solution if it does!
Check out this blog of mine: How to Export Telemetry Data from Azure IoT Central into Power BI

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.