This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I'm in Power Query editor. I've created a new Customer Column called "EmploymentDuration_Days". This field returns the number of days the employee was employed with the company. I'm trying to evaluate the days into something more common for the user. For instance...
if [EmploymentDuration_Days] >= 181 and [EmpoloymentDuration_Days] < 365 then "6 Months-1 Year" else "Some Other Text Here"
...ultimately this will be 7 itterations of the if() but need to understand why the example above returns the error below:
Expression.Error: The field 'EmpoloymentDuration_Days' of the record wasn't found.
Details:
HiredDate=9/6/2001 12:00:00 AM
RetiredDate=7/9/2002 12:00:00 AM
EmploymentDuration_Days=306
EmploymentDuration=[Error]
Solved! Go to Solution.
I'd have to see your full M code and example, but your error copied has EmploymentDuration_Days mispelled. It might be as simple as that.
'EmpoloymentDuration_Days'
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingI'd have to see your full M code and example, but your error copied has EmploymentDuration_Days mispelled. It might be as simple as that.
'EmpoloymentDuration_Days'
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingThat was merely a typo and I'm truly thankful for your eagle-eye. The spelling error corrected my error.
Great! My first go-to issue is typos or something not the same case. Employment_Days will not match Employment_days for example and throw the same error.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingCheck out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.