Hi, My base dataset is not fixed and headers keep on changing every month. Hence Select tool is out of question
Otherwise how can i change my headers ? Dates keep on changing every month
Current dataset format
Desire result
Solved! Go to Solution.
do you want dates in place of previous and current?
i Want previous and current in place of dates
I would calculate the dates you want to change and use a dynamic rename tool.
Formulas:
Previous: DateTimeFormat(DateTimeTrim(DateTimeAdd(DateTimeToday(),-1,"month"),"lastofmonth"),"%d-%b-%Y")
Current: DateTimeFormat(DateTimeTrim(DateTimeToday(),"lastofmonth"),"%d-%b-%Y")
These are based on the assumption that "Current" means the current month, but you can easily change them to whatever you need with DateTimeAdd, e.g. you might need -1 and -2 months.
User | Count |
---|---|
56 | |
26 | |
24 | |
21 | |
21 |