Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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.
Solved! Go to Solution.
I created a copy of the column ProductionDate with the format 'mmmyyyy'. Then I grouped by the copy (MonthYear) and summarized 'ItemCount'. Success!
Hi @Anonymous ,
How about creating a custom column like this:
Here the code:
CustomColumn =
FORMAT (
DATE (
LEFT ( [date], 4 ),
RIGHT ( LEFT ( [date] ,6 ), 2 ),
RIGHT ( [date], 2 )
),
"mmm"
)
After that you can either use that column in a report:
Or you create a separate custom table like this:
Let me know, if this helps!
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
Thanks!
This is what I got, my field ProductionDate is not recognized:
Hi @Anonymous ,
I think you need to specify the table before the column.
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
OK, I still have error on 'ProductionDate'
Hi @Anonymous ,
Are you using a measure instead of a column maybe?
You may share some data if you like so I can look into it, too!
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/
| Did I answer your question❓➡️ Please, mark my post as a solution ✔️ |
| Also happily accepting Kudos 🙂 |
| Feel free to connect with me on LinkedIn! | |
| #proudtobeasuperuser | |
I created a copy of the column ProductionDate with the format 'mmmyyyy'. Then I grouped by the copy (MonthYear) and summarized 'ItemCount'. Success!
Hi @Anonymous
You may try
Month =
VAR CurrDate =
SELECTEDVALUE ( Table[Date] )
RETURN
FORMAT ( DATE ( 1, MONTH ( CurrDate ), 1 ), "mmm" )
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 6 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 7 | |
| 7 | |
| 7 |