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
sally1khalil
New Member

How can I get the least repeated value in a measurement?

I have a column of the sold products

Lets say I have 3 sold items as showed in the table and I want to return the minimum sold item, how can I do that in a new measurement?

powerbi
powerbi
word
word
onenote
 

@PowerBI 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @sally1khalil 

Create a calculated column to count the number of 3 sold items .

 

count = CALCULATE(COUNT('Table'[column]),ALLEXCEPT('Table','Table'[column]))

 

Ailsamsft_0-1643953029711.png

Then add a card visual , add the [column] and [count] in visual filter . Select the one with the smallest value in count , then you can see “onenote” in card visual . Measure cannot use Top N function , so create a calculated instead of measure .

Ailsamsft_1-1643953029714.png

Ailsamsft_2-1643953029716.png

I have attached my pbix file, you can refer to it .

 

Best Regard

Community Support Team _ Ailsa Tao

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

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @sally1khalil 

Create a calculated column to count the number of 3 sold items .

 

count = CALCULATE(COUNT('Table'[column]),ALLEXCEPT('Table','Table'[column]))

 

Ailsamsft_0-1643953029711.png

Then add a card visual , add the [column] and [count] in visual filter . Select the one with the smallest value in count , then you can see “onenote” in card visual . Measure cannot use Top N function , so create a calculated instead of measure .

Ailsamsft_1-1643953029714.png

Ailsamsft_2-1643953029716.png

I have attached my pbix file, you can refer to it .

 

Best Regard

Community Support Team _ Ailsa Tao

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

GilbertQ
Super User
Super User

Hi @sally1khalil 

 

Are you looking to show the answer of onenote?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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
Top Kudoed Authors