Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have couple of dates for a single customer. So I want to calculate the first date as Account start date. I was trying to use this in the script but its showing invalid expression.
Min((Date#(InstallDt,'YYYYMMDD')) as [Account Start Date])
Am I doing wrong somewhere?
Thanks,
Shan
try like below
aggr(min(Installdt),Customer_ID)
as a calculated Dim in chart
Hi, try removing 1 '(' after Min():
Min(Date#(InstallDt,'YYYYMMDD')) as [Account Start Date])
Also remove last ')'
Min(Date#(InstallDt,'YYYYMMDD')) as [Account Start Date]
Still Showing Invalid Expression.
Thanks,
Shan
Hi Shan,
For [Account Start Date] you are using Min, to do this you need to have a Group By clause?
In case you have the Group By clause yo need to add all non-aggregated fields to the group by, or use funcions like MinString(), Min(), Sum() to convert non-aggregated fields into aggregated fields.
Hope this helps
Hi,
Try this
Min(Date(InstallDt,'YYYYMMDD')) as [Account Start Date]
or Min(Date#(InstallDt,'YYYYMMDD')) as [Account Start Date]
The expression is not working.
Ruben,
No I am not using any Goup By Clause.
Thanks,
Shan
hi
try some thing like
date#(min(Installdt),'YYYYMMDD') as [Account start date]
Actually i am using this Minimum Date (Account Start date) in the Chart. Is there any way i can change the dimension and make the expression there to get the Minimum date?
Thanks,
Shan