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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
Kathir
Frequent Visitor

unique calculated column

Hi, 

 

What is the caculated DAX to achieve 1, 0 from the table below.?

 

It shld be used in data view calculated column and not a measure in a report

 

Thanks

Screenshot 2024-08-06 231912.png

1 ACCEPTED SOLUTION
ryan_mayu
Super User
Super User

@Kathir 

you can try to create an index column in PQ

 

then use DAX to create a column

 

Column =
VAR _count=countx(FILTER('Table','Table'[Index]<=EARLIER('Table'[Index])&&'Table'[Column1]=EARLIER('Table'[Column1])),'Table'[Column1])
return if (_count=1,1,0)
 
12.PNG
 

 

 

 





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

Proud to be a Super User!




View solution in original post

2 REPLIES 2
ryan_mayu
Super User
Super User

@Kathir 

you can try to create an index column in PQ

 

then use DAX to create a column

 

Column =
VAR _count=countx(FILTER('Table','Table'[Index]<=EARLIER('Table'[Index])&&'Table'[Column1]=EARLIER('Table'[Column1])),'Table'[Column1])
return if (_count=1,1,0)
 
12.PNG
 

 

 

 





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

Proud to be a Super User!




NaveenGandhi
Memorable Member
Memorable Member

Hi @Kathir 

Your question is a bit unclear, If you want a calculated column to only have unque values from the column you specified use below dax to create a table.

Unieuq = values(columnname)

If this is not what you are looking for, Please provide sample screenshot for sample output.

If this post helps, then please consider Accept it as the solution to help the others find it more quickly. Appreciate you kudos!!

Follow me on LinkedIn!!!

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.