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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

DAX calculation

Hi  All -- 

 

I am looking to calculate the # of current State by using column (state) and Column (Status) where Status says current. And need to filter/remove duplicates under column (state) to get the right value.

Thank you

 

 

rilonex_0-1653084118404.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Current # of States =
CALCULATE(DISTINCTCOUNT(Sheet1[state]),Sheet1[status]="Current")

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Current # of State =
CALCULATE(COUNT(Sheet1[state]),Sheet1[status]="Current")
Anonymous
Not applicable

Current # of States =
CALCULATE(DISTINCTCOUNT(Sheet1[state]),Sheet1[status]="Current")

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 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.