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

Syntax error

Does anyone know what this error means? 

SRA1_0-1648252120390.png

I'm trying to create a measure that will count the rows in a column for either active or planned.

 

Thank you,

 

Sam

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Try this.

ActiveFTE =
CALCULATE (
    COUNTROWS ( '2022 Headcount Forecast-CountSA' ),
    '2022 Headcount Forecast-CountSA'[Dec21 Status Active/Planned/Forecast] = "Active"
)

 

Here are some references that may be helpful.

DAX syntax

COUNTROWS function

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

Try this.

ActiveFTE =
CALCULATE (
    COUNTROWS ( '2022 Headcount Forecast-CountSA' ),
    '2022 Headcount Forecast-CountSA'[Dec21 Status Active/Planned/Forecast] = "Active"
)

 

Here are some references that may be helpful.

DAX syntax

COUNTROWS function

 

Best Regards,
Community Support Team_Gao

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

tamerj1
Super User
Super User

hi @Anonymous 
Watch out the table name. When it contains spaces you should write like this
'2022 Headcount Forcast-CountSA'

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.