on ‎2022 Aug 18 4:28 PM
Hello
I need to calculate the first day of the month in a data action in SAC. I see there is FIRST funcion but it seems to bring the first day of the year. I thought about using string functions but it seems it does not exist in SAC
Regards
Rafa
Request clarification before answering.
raffuente
Hello Rafa,
No straight SAC syntax to get the first day of every month dynamically but you can try a workaround using FOREACH, PREVIOUS() and DAY ().
I have answered a similar question below. See if it helps.
Please upvote/accept if this helps.
Regards
Nikhil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, in my case I had to aggregate data in model on daily level to monthly level. Worked with the following:
DATA([d/Date] = PERIOD([d/Date].[p/CALMONTH])) = RESULTLOOKUP()Regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.