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 September 15. Request your voucher.

Reply
Carlo1975
Helper I
Helper I

countif

I'm Sorry, but I wrote this in the power query forums but I think that is better with dax. I have a table with a lot of columns.

I wanto to add a column in wich I will count how many time the value of Sell columns is repeated like if I use CountIf in excel. For me is the same from DAX or Power Query.

 

SellerCount Seller
000658621
000496742
000496742
000382811
000326842
000531951
000326842
000780921
000496751
000780951

 

thank you

1 ACCEPTED SOLUTION
AlB
Community Champion
Community Champion

Hi @Carlo1975 

Count Seller =
CALCULATE ( COUNT ( Table1[Seller] ), ALLEXCEPT ( Table1, Table1[Seller] ) )

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

 

View solution in original post

1 REPLY 1
AlB
Community Champion
Community Champion

Hi @Carlo1975 

Count Seller =
CALCULATE ( COUNT ( Table1[Seller] ), ALLEXCEPT ( Table1, Table1[Seller] ) )

Please mark the question solved when done and consider giving a thumbs up if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc.

Cheers 

SU18_powerbi_badge

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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