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

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

Reply
Anonymous
Not applicable

Create a calculated column based on duplicated values in another column (Using Dax only)

Greeting all , 

 

i have this table in power BI   (this is just a small example so i can use it later on the project )  : 

1 duplicate.PNG

i want to create a calculated column named "duplicate" where it have the value "1" to only one offer from the duplicated value in the table using Dax 

here is my output : 

2 duplicate.PNG

i made some research and i think it should be created with a function called All except but i cant figure it out 

 

Thanks in advance all 

 

 

 

 

3 REPLIES 3
v-diye-msft
Community Support
Community Support

Hi @Anonymous 

 

Not quite understand your logic, would you like to get below results?

 

Measure = var a = CALCULATE(MIN('Table'[Number of aplies]),ALLEXCEPT('Table','Table'[Title]))
Return
IF(MAX('Table'[Number of aplies])=a,1,0)

 

002.PNG 

 

Or this one:

Column = var a = [Title] 
var b =  RANKX(FILTER('Table',[Title]=a),[Number of aplies],,ASC)
return IF(b=1,1,0)

003.PNG

Pbix attached.

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

Thanks for your reply , but your solution works only if i dont have the same number of applies for every title 

 

what im trying to acheive here is to create a column where i can use it later to filter my table without showing duplicated values of my title ! 

 

the object here that im trying to dislay a table in my report where i show the list of the titles (i need to remove the duplicate values here just for the visual )

 

Greg_Deckler
Community Champion
Community Champion

I am not clear on the requirements. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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