Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
camila1
Contributor
Contributor

Count if the date is on the current year

Hi everyone!

I don't know why I have an error in this expression, someone could help me please?

= Count({<year([fecha inicial.wos])= year(today()),([sigue abierta.wos]= {'No'})>} wonum.WOS) / Count(wonum.WOS)

Labels (1)
2 Replies
Or
MVP
MVP

You can't use functions this way within set analysis. Try instead:

Count({<year([fecha inicial.wos])= {"=year(today())"},([sigue abierta.wos]= {'No'})>} wonum.WOS) / Count(wonum.WOS)

vinieme12
Champion III
Champion III

You cannot use Functions on the left side of the  = , you need to use actual fields

create a new field in your table year([fecha inicial.wos]) as year_fechainicialwos

 

Then in expression use the field

= Count({<year_fechainicialwos= {"=$(=year(today()))"},[sigue abierta.wos]= {'No'}>} wonum.WOS)

/ Count(wonum.WOS)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.