Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Need to create a cusotm column with the combination of Letter P and PreviosuMonth data.
Expeceted Output :
P10
P10
P10
P10
Thanks in Advance
Solved! Go to Solution.
Hi @im_newbie_123 ,
To add a custom column as below.
="P" & Number.ToText(Date.Month(DateTime.LocalNow())-1)
Hi @im_newbie_123 ,
To add a custom column as below.
="P" & Number.ToText(Date.Month(DateTime.LocalNow())-1)
You mean something like:
"P" & Text.From([PreviousMonth])Assuming PreviousMonth is a column that has the number 1 to 12
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 9 | |
| 8 | |
| 7 | |
| 7 |