DATETRUNC does not accept parameter directly( atleast in the latest versions), it needs a Case statement to work. CASE [Dynamic date] WHEN 'Days' THEN DATETRUNC('day', [OrderDate]) WHEN 'Quarterly' THEN DATETRUNC('quarter',[OrderDate]) WHEN 'Monthly' THEN DATETRUNC('month',[OrderDate]) END
DATETRUNC does not accept parameter directly( atleast in the latest versions), it needs a Case statement to work.
CASE [Dynamic date]
WHEN 'Days' THEN DATETRUNC('day', [OrderDate])
WHEN 'Quarterly' THEN DATETRUNC('quarter',[OrderDate])
WHEN 'Monthly' THEN DATETRUNC('month',[OrderDate])
END
Thank you!
parameter will work in datetrunc . for that u need to give exact date part of day, week, month, year in parameter list to make it possible.
Thanks.. this was very useful..👍
Hi would like to know can we add start date and end date and further drill down using year Month Day
Thanks for the video bro
Sir what formula u have written in calculated field?
Hi Abhishek! I would like to know limitations of parameters.
Why did you change to discreat and what date truncated does ,also explain .
flexi order date how you created?
Hi Abhishek - How do I make the Labels dynamic too, like it shows Q1, Q2..if Quarter is selected and jan, Feb, Mar...if month is selected?
Hi, were you able to figure out how?