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 am trying to end up with a column that contains the month and year of a DateTime field.
I can find how to extract the month from a date or extract the year but I cannot find how to extract the month and year into one field.
Solved! Go to Solution.
= MONTH([date] & YEAR([date])
Or, the long way:
CONCATENATE(MONTH([date]),YEAR([date]))
And wrap the whole thing in VALUE() to cast back to a numeric type if you need:
= VALUE( MONTH( [Date] ) & YEAR( [Date] ) )
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 |
---|---|
114 | |
97 | |
85 | |
70 | |
61 |
User | Count |
---|---|
151 | |
120 | |
103 | |
87 | |
68 |