Here is the condition
The SUM of Sale where Sale_Date is BETWEEN Joined_Date β30(days) AND Joined_Date -1
Here is the condition
The SUM of Sale where Sale_Date is BETWEEN Joined_Date β30(days) AND Joined_Date -1
sum(ifelse(dateDiff({sales_date},{joined_date})<=-1 AND dateDiff({sales_date},{joined_date})>=-30,{sales},0))
interesting code, let me try this actually it helps or even resolve this problem. It gives me hint to create a formula. By the way this is my code
sumIf({Sale},
truncDate(βDDβ,{Sale_Date}) >= addDateTime(-30,βDDβ,truncDate(βDDβ,{Joined_Date})) AND truncDate(βDDβ,{Sale_Date}) < addDateTime(-1,βDDβ,truncDate(βDDβ,{Joined_Date})))
Hoping the above solution worked for you? I am marking the reply as βSolution,β but let us know if this is not resolved.
Thanks for posting your questions on the QuickSight CommunityQ&A Forum!