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
DiKi-I
Post Partisan
Post Partisan

Need help with dax

I have a history table with ticket data with duplicates tickets.
I want to find which tickets has only one entry in table.
I want to set some flag value using calculated column. If the ticket exist only once the flag will be Y else N.

How I can do this using dax.

1 REPLY 1
adudani
Super User
Super User

HI @DiKi-I ,

 

you can watch this video for details : (27) Find Duplicate Values in Dimension Tables - YouTube

 

Essentially the DAX code for a calculated column is on 3:46 of the video as shown below. Modify this for your data. This will count the number of duplicates in the column specified. 

 

Then you can create a measure/ column whichever you need for the flag. 

IF( table[check] = 1 ,"Y","N") or use switch true.

 

Capture.PNG

 

if this doesn't resolve the issue, please share a sample input and output with masked data.

 

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

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