Forum Discussion
Need Assistance Converting a column
- 1 year ago
Beginner101 In the Power Query Editor, go to the "Add Column" tab and click on "Custom Column".
= if Text.StartsWith([Date Replaced], "Pre-2024") then "Pre-2024"
else Date.ToText(Date.FromText([Date Replaced]), "MM/yy")Ensure that the dates in the "Date Replaced" column are in a recognizable date format. If they are not, you might need to transform them into a date format first using Date.FromText.
After adding the custom column, click on "Close & Apply" to apply the changes and return to the Power BI Desktop and use it as slicer
Hi @Beginner101 , Please let us know if your issue is solved. If it is, consider marking the answers that helped 'Accept as Solution', so others with similar queries can find them easily. If not, please share the details.
Thank you.