Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.
Hello,
I have a standard CalendarAuto table linked with my data set. I am trying to get a "previous period" card set up using the following code:
Start Previous Period =
Dates[End Previous Period]-Dates[Days in Period]
I need to then round this start date to the begining of the month, ie if the return is 3 may, i need the return to be 1 may. Is there any way to do this? I tried using STARTOFMONTH however it does not allow me to do this as the calculation is not a column.
Thank you in advance
Solved! Go to Solution.
use the EOMONTH(dateValue, -1) + 1
That EOMONTH will return the last day of the previous month, and then you can +1 to get the 1st day of the original dateValue
use the EOMONTH(dateValue, -1) + 1
That EOMONTH will return the last day of the previous month, and then you can +1 to get the 1st day of the original dateValue
Thank you, this is exactly what i was looking for! much appreciated.
User | Count |
---|---|
77 | |
70 | |
68 | |
53 | |
48 |
User | Count |
---|---|
45 | |
38 | |
35 | |
31 | |
28 |