简体   繁体   中英

Deltek CostPoint Formula to return just the year from a date

this seems like it should be simple, but i think i'm missing something...

see image below for context

i need a simple expression to return the year from a date from "DOB" which is /should be in a date format.

using CostPoint 8.0 (cognos analytics)

i'm sure i'm missing someting obvious, but i'm at a lost.. any takers?

在此处输入图像描述

The error message is complaining about parsing. The opening (after the function) and closing (after the qi) brackets are missing. Reading error messages is usually the first thing you ought to do, as it might tell you what the query engine thinks is the problem, or give you sufficient hints to put you into the ballpark.

The information field will display the syntax of a function when you click on it.

You should also be aware of what functions are supported by whatever Database vendor you are using as it is preferable to use a native function, as that will mean that the probability of local processing will be reduced as it would be more likely to be pushed down to the data base for processing.

带有指向函数选项卡的箭头的报告表达式编辑器

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM