Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Experts,
Can any one please help me on below requirement.
I have a Due date field in DD/MM/YYYY format. From that field based on Weekday need to derive the below Measure.
Count(Distinct issuenum) where duedate>= start of week(Monday) and <=end of week(sunday)
how to add the where condition on set analysis. Please help me on this.
Thanks in advance.
I think you need a max here
Count(DISTINCT{<DueDate ={">=$(=Date(WeekStart(Max(DueDate),0,0),'MM/DD/YYYY'))<=$(=Date(Weekend(Max(DueDate),0,0),'MM/DD/YYYY'))"}>}issuenum)
try this...
Count(Distinct issuenum) where
duedate>= weekStart(duedate) and <=Weekend(duedate)
Or
=Sum({<OrderDate={'>=$(=WeekStart(OrderDate))<=$(=WeekEnd(OrderDate))'}>}OrderSalesAmount)
try
count({<dateField={">=$(=date(weekstart(duedate)))<=$(=date(weekend(duedate)))"}>} issuenum)
Regards,
May be this
Count({<Weekday(Date(DueDate,'DD')) = {">=$(=weekday(WeekStart(DueDate,0,0)))<=$(=weekday(Weekend(DueDate,0,0)))"}>}Distinct issuenum)
What's the format of your Duedate?
Its MM/DD/YYYY
=Count(DISTINCT{<DueDate ={">=$(=Date(WeekStart(DueDate,0,0),'MM/DD/YYYY'))<=$(=Date(Weekend(DueDate,0,0),'MM/DD/YYYY'))"}>}issuenum)
Try this
Hi Shivesh,
Now getting 0
Thanks
Please share your app once
Hi Shivesh,
Sorry. I cant share the app its a large data file.