Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have the below data showing company fiscal year and month number. My intention is to convert this data into a "month year" format. For instance, I need the 202006 to read as September 2020, 202007 as October 2020, and so on. I was told I needed to create an index, but wasn't sure the best way to go about it. I appreciate any insight, thanks!
Solved! Go to Solution.
Hi @dmoney7612 ,
Based on your description, you can do some steps as follows.
1. Create a date column to record the real date from the "Fisal year month number".
_DATE = DATE(LEFT([Fisal Year Month Number],4),RIGHT([Fisal Year Month Number],2),1)
2. create a calculated column.
Test_for_date =
var x1=DATEADD('Calendar'[_DATE],3,MONTH)
return
FORMAT(x1,"MMMM"&" "&"YYYY")
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @dmoney7612 ,
Based on your description, you can do some steps as follows.
1. Create a date column to record the real date from the "Fisal year month number".
_DATE = DATE(LEFT([Fisal Year Month Number],4),RIGHT([Fisal Year Month Number],2),1)
2. create a calculated column.
Test_for_date =
var x1=DATEADD('Calendar'[_DATE],3,MONTH)
return
FORMAT(x1,"MMMM"&" "&"YYYY")
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello @dmoney7612 ,
You can crete calculated column as
Column 2 = DATE(LEFT('Table'[Column],4),RIGHT('Table'[Column],2),01)
And change the format to mmmm yyyy from format option.
If this fulfilled your requirement please mark this post as a solution.
Thanks!
I tried this but it doesn't give me the correct order for my fiscal months. For example I need 202006 to be September 2020, but when I use this formula it shows 202006 as June 2020. Are there previous steps I need to complete first?
Hello @dmoney7612 ,
Try this-
Column 2 = DATEADD(DATE(LEFT('Table'[Column],4),RIGHT('Table'[Column],2),01),3,MONTH)
Please check for 202012 and 202101 if its giving expected result.
If this fulfilled your requirement please mark this post as a solution.
Thanks!
I am receieving an error right after the ",01),"
Use your original column 202006 as the Sort By column for the new column. If that gives a circular dependency error, you will need to make the MMMM yyyy column in the query editor first.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Please try this column expression
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
I'm confused as to what the "YM' in the forumla is referencing
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |