Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
stonecold111
Creator III
Creator III

Date field

Hi qliks,

I've a date dimension which has last 3 years of dates

I want to filter dates between last 2 quarters to last week

End date.

So it should filter dates start from 1st April 2017 to

5 th November 2017(last week end date).

Calculated dimension for this date????

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Perhaps this as calc. dimension

If(DateField >= QuarterStart(Addmonths(Today(),-6)) and  DateField <= Date(WeekStart(Today())), DateField)


In Set Analysis, Should be like below

Sum({<DateField = {">=$(QuarterStart(Addmonths(Max(DateField),-6))) <=$(=Date(WeekStart(Max(DateField)))) "}>} 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

View solution in original post

4 Replies
prat1507
Specialist
Specialist

Load ....

from..

where Date>=QuarterStart(Addmonths(Today(),-6))

and Date<=date(WeekStart(Today())-1)

Anil_Babu_Samineni

Perhaps this as calc. dimension

If(DateField >= QuarterStart(Addmonths(Today(),-6)) and  DateField <= Date(WeekStart(Today())), DateField)


In Set Analysis, Should be like below

Sum({<DateField = {">=$(QuarterStart(Addmonths(Max(DateField),-6))) <=$(=Date(WeekStart(Max(DateField)))) "}>} 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
stonecold111
Creator III
Creator III
Author

Thanks.. will check.

stonecold111
Creator III
Creator III
Author

Thanks