Forum Discussion
Anonymous
4 years agoNot applicable
Distinct months..?
Hi, I have dates in a table with the format yyyymmdd. I want to populate a list in a report with distinct months with the format mmm How can I do this? Kent J.
- Anonymous4 years ago
I created a copy of the column ProductionDate with the format 'mmmyyyy'. Then I grouped by the copy (MonthYear) and summarized 'ItemCount'. Success!
tamerj1
Community Champion
4 years agoHi Anonymous
You may try
Month =
VAR CurrDate =
SELECTEDVALUE ( Table[Date] )
RETURN
FORMAT ( DATE ( 1, MONTH ( CurrDate ), 1 ), "mmm" )