Forum Discussion
im_newbie_123
6 years agoFrequent Visitor
How to create custom column with Power Query editor
Need to create a cusotm column with the combination of Letter P and PreviosuMonth data.
Expeceted Output :
P10
P10
P10
P10
Thanks in Advance
Hi im_newbie_123 ,
To add a custom column as below.
="P" & Number.ToText(Date.Month(DateTime.LocalNow())-1)
2 Replies
- artemusMicrosoft Employee
You mean something like:
"P" & Text.From([PreviousMonth])Assuming PreviousMonth is a column that has the number 1 to 12
- v-frfei-msftCommunity Support
Hi im_newbie_123 ,
To add a custom column as below.
="P" & Number.ToText(Date.Month(DateTime.LocalNow())-1)