Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all,
We have a company table containing a date field called "Onboarding Date".
I want to make a calculated column based on that date to be like this:
If Onboarding Date is blank OR in current year; "New"; "Existing".
However, I am not sure how to make this.
Thanks for the help 🙂
Solved! Go to Solution.
Hi @Anonymous
try column
Column =
IF(
OR(ISBLANK([Onboarding Date]), YEAR([Onboarding Date]) = YEAR(TODAY()) ),
"New",
"Existing"
)
do not hesitate to give a kudo to useful posts and mark solutions as solution
since i've gone thru the pain of learning this today.
determines if an end date is in this year or next (for a gantt visual filter)
= Table.AddColumn(#"convert progress to percent", "ganttyearfilter", each if([Forecast End Date] is null) then "0" else if(Date.IsInCurrentYear([Forecast End Date])) then "1" else if(Date.IsInNextYear([Forecast End Date]))then "2" else "99")
create a new column
New Vs Exiting =
IF( (ISBLANK([Onboarding Date]) || YEAR([Onboarding Date]) = YEAR(TODAY()) ),"New","Existing"
)
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution. In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blog -
https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...
https://community.powerbi.com/t5/Community-Blog/Power-BI-Working-with-Non-Standard-Time-Periods/ba-p...
https://community.powerbi.com/t5/Community-Blog/Comparing-Data-Across-Date-Ranges/ba-p/823601
@Anonymous,
Here you go,
Hi @Anonymous
try column
Column =
IF(
OR(ISBLANK([Onboarding Date]), YEAR([Onboarding Date]) = YEAR(TODAY()) ),
"New",
"Existing"
)
do not hesitate to give a kudo to useful posts and mark solutions as solution
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
79 | |
58 | |
35 | |
34 |
User | Count |
---|---|
99 | |
59 | |
56 | |
46 | |
40 |