Forum Discussion
SQL Semi annual due date
- 6 years ago
Hi bethf ,
It seems that you want to get result of last or next 6 months based on today, right? Ifso, you could try to use relative date slicer or use measure to achieve this goal. You could refer to my sample for details.
Best Regards,
Zoe ZhiIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi bethf ,
I am not sure your requirement, did you want to use powerbi to get the result or you just use SQL code to achieve this? If possible, could you please inform me more detailed information(such as your expected output and your sample data)? Then I will help you more correctly.
Please do mask sensitive data before uploading.
Thanks for your understanding and support.
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
So what I am trying to acheive is an semi annual due date.
For example if today is 6/24/2020 and the issue date was 1/1/2020 then the next semi annual date would be 1/1/2021, given that the first semi annual due date,6/1/2020, has already passed. Does that make sense?
This would be in SQL that I would then pass to PBI