Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I've a simple table with a date field called "ServDate" formatted as a date *3/14/2001 with values ranging from 9/4/2018 to 3/29/2019. The table has ~134K rows. Creating a new column like this
MMM = MONTH(a[ServDate])
I get:
ServDate MMM
10/2/2018 10
10/2/2018 10
10/18/2018 10
... so this works.
But IF, we add this piece, MMM = FORMAT(MONTH(a[ServDate]),"MMM"), we get
ServDate MMM
10/2/2018 Jan
10/2/2018 Jan
10/18/2018 Jan
The month here is October, not January. Please let me know if you want the pbix.
Solved! Go to Solution.
Hi @S184019,
Please modify the DAX like below:
Best Regards,
Qiuyun Yu
Hi @S184019,
Please modify the DAX like below:
Best Regards,
Qiuyun Yu
Even more simply, start from a blank PBIX. create a new table. Type this which will produce a 2 year date range of 731 rows:
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |