I want to retrieve previous fiscal month from my data.
I can using a filter tool to retrieve the need month, but don't want to do it manually by changing the Fiscal month every time, instead want it automated so every time i run my workflow it needs to retrieve only previous month data.
Hi @dcsramya
You could use a filter like this. Essentially, subtract one month from today's date and format it to the YYYYMM format.
tostring([FIS_MTH_ID]) = datetimeformat(datetimeadd(datetimetoday(),-1,'month'),'%Y%m')
Thanks Luke
My fiscal Period in the table is from Oct23 to Sep24 and my previous period would be 202406 and not 202403. Since we are using Date time today it's fetching 202403 period.
Hi @dcsramya
Got it. I'm not following how 202406 is the previous period. Previous compared to what?
+2 worked
Just realized that won't when you're in October. For example instead of 202401, you would get 202312
User | Count |
---|---|
19 | |
14 | |
13 | |
9 | |
8 |