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.
Hi, I have a dataset that currently has Date column. I need to be able to extract and add Year, Month, MonthName, End of Month, Month-Year cloumn. Can someone let me know how I could do this? Thanks!
Cheers,
Vanessa
Solved! Go to Solution.
Hi :
Use the Below code :
Year : "Year",YEAR([Date])
Month : "Month",MONTH([Date])
Month Name : "Month Name",FORMAT([Date],"MMMM") OR "Month Name Short",FORMAT([Date],"MMM")
End of Month : "End of Month",EOMONTH([Date],0)
Month-Year : "Year Month Number",INT(FORMAT([Date],"YYYYMM")) or
"Year Month Name",FORMAT([Date],"YYYY-MMM")
Appreciate your Kudos and mark as solution if it helps you
Hi :
Use the Below code :
Year : "Year",YEAR([Date])
Month : "Month",MONTH([Date])
Month Name : "Month Name",FORMAT([Date],"MMMM") OR "Month Name Short",FORMAT([Date],"MMM")
End of Month : "End of Month",EOMONTH([Date],0)
Month-Year : "Year Month Number",INT(FORMAT([Date],"YYYYMM")) or
"Year Month Name",FORMAT([Date],"YYYY-MMM")
Appreciate your Kudos and mark as solution if it helps you
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 |
---|---|
96 | |
94 | |
80 | |
71 | |
64 |
User | Count |
---|---|
115 | |
106 | |
96 | |
81 | |
72 |