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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

undefined

Hi,

 

I want to count how many duplicate values are in the column. But want this in a calculated column rather that measure.

 

thanks,

5 REPLIES 5
vanessafvg
Community Champion
Community Champion

@Anonymous can you give an example of what you asking?  ie.

 

col 1   calculated column

1         3

1         3

1         3

2         2

2         2

 

 

?

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

@vanessafvg Yes this is what I am looking

@Anonymous i can only figure out how to use it in a calculated measure

 

ie. 

 

calculate(countx(table, table[column])

 

will a measure not work for you?  the other way of doing it is to summarize the table and then create a relationship to it

ie.

 

summarize (table, table[column], "count" countx(table, table[column]))





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

@vanessafvg Thank you for your time. I have already tried calculated function with measure which is working fine for me. But there is requirement for a colunm which we need to add with desired output. I beleive we don't have any workaround for it.

must be a way to do it

 

also this

 

ie. 

 

calculate(countx(table, table[column])

 

will a measure not work for you?  the other way of doing it is to summarize the table and then create a relationship to it

ie.

 

summarize (table, table[column], "count" countx(table, table[column]))





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.