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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have a date column format (month ,day, year) ranging from January 2015 to December 2017. I would like to create a new column such as January 2015 to May 2016 is recorded as 1, June 2016 to January 2017 as 2, Feb 2017 to Dec 2017 as 3. Is there a Dax function allowing such transformation? Or what would be the DaX formula in powerbi?
Thanks,
Solved! Go to Solution.
Hi,
This is my first proposal as a solution, pretty sure there are better answers and please don't laugh too hard (experts).
=if([Date]<=date(2016,05,31),1,if([Date]<=date(2017,01,31),2,3))
Hi,
This is my first proposal as a solution, pretty sure there are better answers and please don't laugh too hard (experts).
=if([Date]<=date(2016,05,31),1,if([Date]<=date(2017,01,31),2,3))
Yup..... It works perfectly. Laughting at myself as it was so simple, an IF function. Thanks soooo much you JP-Ronse
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 103 | |
| 80 | |
| 58 | |
| 51 | |
| 46 |