Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Date Issues

I have field (DateID) with a list of dates for example Jan-1-2018 , Jan-2-2018..... Jan-15-2018. I am using this in my set expression as

P(DateID) which shows all the dates.

There is another date AuthDate which is equal to say Jan-10-2018, then the set expression should use only the dates leading upto Jan-10-2018

How do I achieve this ?

3 Replies
Anil_Babu_Samineni

If those dates co-associates to each then expression looks

Sum({<DateID = P({<AuthDate = {"<=$(=Date(YearStart(Today()), 'MMM-DD-YYYY'))"}>} DateID)>} measure)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Why is the Date(YearStart(Today()), 'MMM-DD-YYYY' used in the expression?

pradosh_thakur
Master II
Master II

what about


Sum({<DateID = P({<DateID={"=(AuthDate>=DateID)"}>} DateID)>} measure)


note: it will include all dates prior to AuthDate and not only confined to current year.

Learning never stops.