Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
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] ) )
User | Count |
---|---|
128 | |
108 | |
100 | |
64 | |
62 |
User | Count |
---|---|
136 | |
113 | |
102 | |
71 | |
60 |