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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
fbron
Frequent Visitor

Count identical values within a column

I'd like to count the amount of identical values within a column and present the outcome within a new column. 

 

"ITEM "IS THE COLUMN I AM USING, "COUNT" IS THE RESULT I NEED FROM DAX/MEASURE"ITEM "IS THE COLUMN I AM USING, "COUNT" IS THE RESULT I NEED FROM DAX/MEASURE

Any suggestions? 

1 ACCEPTED SOLUTION
ZunzunUOC
Resolver III
Resolver III

Hi @fbron , you could create the next calculated column:

 

num = CALCULATE(COUNTROWS('Count');FILTER('Count';'Count'[item]=EARLIER('Count'[item])))

Best Regards,
Miguel

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

3 REPLIES 3
ZunzunUOC
Resolver III
Resolver III

Hi @fbron , you could create the next calculated column:

 

num = CALCULATE(COUNTROWS('Count');FILTER('Count';'Count'[item]=EARLIER('Count'[item])))

Best Regards,
Miguel

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

Most likely I'm doing something wrong but this doesn't work:

 

 

Calculated Column.jpg

Any suggestions?

 

 

 

Hello @fbron ,

 

Solution suggested by @ZunzunUOC is to create DAX Column in Power BI Desktop 🙂 . Not Custom Column in Power Query editor. 

 

Cheers,

Nawal
+91-9866755720 | Power BI Consultant

https://www.linkedin.com/in/snawalkishore/

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.