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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Help needed with count measure

Hello everyone. I want to create a measure where i have to show the total count of  "wins" from a column called "table[state]". The column called "state" has two values, "won" and "lost". I have to show count of wins where state = won. How can we achieve this using measures? Any help would be appreciated. 

1 ACCEPTED SOLUTION
darry3ni
Frequent Visitor

CALCULATE(COUNTROWS('table'),'table'[state]="won")

View solution in original post

1 REPLY 1
darry3ni
Frequent Visitor

CALCULATE(COUNTROWS('table'),'table'[state]="won")

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Kudoed Authors