Forum Discussion
Convert General to Year ONLY Date in Power Query
Hi,
I'm pretty new to Power BI.
I have a dataset that I've brought in to PowerBI and one column of data is the Fiscal Year. This data comes in format - General.
I'd like to convert this to a Date (Year only "YYYY" format) so that I can use a slicer. Any ideas how I can generate a new column with this new format?
Thanks.
Hi hurlingfan11 ,
Is your data like this?
Then please add a custom column in PQ.
= #date( [Fiscal Year], 1, 1 )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
3 Replies
- Nathaniel_CCommunity Champion
Hi hurlingfan11 ,
Best way is to open in Power Query, new custom column using the function in the picture.
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel - v-kkf-msftCommunity Support
Hi hurlingfan11 ,
Is your data like this?
Then please add a custom column in PQ.
= #date( [Fiscal Year], 1, 1 )If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - v-kkf-msftCommunity Support
Hi hurlingfan11 ,
Has your problem been solved? If it is solved, please mark a reply which is helpful to you.
If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz