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!View all the Fabric Data Days sessions on demand. View schedule
I have two fields employees and Year. I am using this formula to calculate growth rate.
Growth % = divide (sum(Data[EMPLOYEES]) - calculate(sum(Data[EMPLOYEES]),SAMEPERIODLASTYEAR(Data[YEAR])), calculate(sum(Data[EMPLOYEES]),SAMEPERIODLASTYEAR(Data[YEAR])))
I am using sum because i have other fields which slices the employment data.
This gives error because Year is not date field. In "Modeling" tab, if i set the format to date then all the values become 1905. I understand its converting year 2013 to number which excel understands but is there is a easier way to fix this?
I assume there has to be easier way to convert year values to date that PBI can use for calculations like this.
Solved! Go to Solution.
You can use the below method to convert your year to date.
Hopefully this will help.
You can use the below method to convert your year to date.
Hopefully this will help.
Thanks for the Solution, but I have to use this to get the right solution:
Thanks Habib.. it worked..
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!