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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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