Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Create new column based on if then date logic

Hello. John and Betty (column 1) both built houses.

John started building his house on 11/20/15 (column 4).

His house was not completed until 6/1/17 (column 5).

In this data set, the original home value (column 6) is being calculated form a build date, and I want to find the home value from the first 36 months after the build has been completed.

John's home is showing it was originally valued at $1, but the new value I want to show ($36) is what appears in column 6 after 36 months. 

6/1/17 + 35 months = 5/1/2020 = $36.

I want that $36 value to show up in a new column (column 7) every time John's name appears in column A.

Additionally, Betty has also built a house but she has not owned it for a full 36 months, only 33 (column C). Because of this, we can't value her home at 36 months, so the new value (column 7) should show up as null every time Betty's name appears in column 1.

 

Appreciate the help on this one.

 

Home OwnerMonths completedTotal Months CompletedBuild DateCompletion DateBuild Date Value $New 36month Value $
John6/1/2017111/20/20156/1/2017136
John7/1/2017211/20/20156/1/2017236
John8/1/2017311/20/20156/1/2017336
John9/1/2017411/20/20156/1/2017436
John10/1/2017511/20/20156/1/2017536
John11/1/2017611/20/20156/1/2017636
John12/1/2017711/20/20156/1/2017736
John1/1/2018811/20/20156/1/2017836
John2/1/2018911/20/20156/1/2017936
John3/1/20181011/20/20156/1/20171036
John4/1/20181111/20/20156/1/20171136
John5/1/20181211/20/20156/1/20171236
John6/1/20181311/20/20156/1/20171336
John7/1/20181411/20/20156/1/20171436
John8/1/20181511/20/20156/1/20171536
John9/1/20181611/20/20156/1/20171636
John10/1/20181711/20/20156/1/20171736
John11/1/20181811/20/20156/1/20171836
John12/1/20181911/20/20156/1/20171936
John1/1/20192011/20/20156/1/20172036
John2/1/20192111/20/20156/1/20172136
John3/1/20192211/20/20156/1/20172236
John4/1/20192311/20/20156/1/20172336
John5/1/20192411/20/20156/1/20172436
John6/1/20192511/20/20156/1/20172536
John7/1/20192611/20/20156/1/20172636
John8/1/20192711/20/20156/1/20172736
John9/1/20192811/20/20156/1/20172836
John10/1/20192911/20/20156/1/20172936
John11/1/20193011/20/20156/1/20173036
John12/1/20193111/20/20156/1/20173136
John1/1/20203211/20/20156/1/20173236
John2/1/20203311/20/20156/1/20173336
John3/1/20203411/20/20156/1/20173436
John4/1/20203511/20/20156/1/20173536
John5/1/20203611/20/20156/1/20173636
John6/1/20203711/20/20156/1/20173736
John7/1/20203811/20/20156/1/20173836
John8/1/20203911/20/20156/1/20173936
John9/1/20204011/20/20156/1/20174036
John10/1/20204111/20/20156/1/20174136
John11/1/20204211/20/20156/1/20174236
John12/1/20204311/20/20156/1/20174336
Betty3/1/2018111/28/20173/1/20181null
Betty4/1/2018211/28/20173/1/20182null
Betty5/1/2018311/28/20173/1/20183null
Betty6/1/2018411/28/20173/1/20184null
Betty7/1/2018511/28/20173/1/20185null
Betty8/1/2018611/28/20173/1/20186null
Betty9/1/2018711/28/20173/1/20187null
Betty10/1/2018811/28/20173/1/20188null
Betty11/1/2018911/28/20173/1/20189null
Betty12/1/20181011/28/20173/1/201810null
Betty1/1/20191111/28/20173/1/201811null
Betty2/1/20191211/28/20173/1/201812null
Betty3/1/20191311/28/20173/1/201813null
Betty4/1/20191411/28/20173/1/201814null
Betty5/1/20191511/28/20173/1/201815null
Betty6/1/20191611/28/20173/1/201816null
Betty7/1/20191711/28/20173/1/201817null
Betty8/1/20191811/28/20173/1/201818null
Betty9/1/20191911/28/20173/1/201819null
Betty10/1/20192011/28/20173/1/201820null
Betty11/1/20192111/28/20173/1/201821null
Betty12/1/20192211/28/20173/1/201822null
Betty1/1/20202311/28/20173/1/201823null
Betty2/1/20202411/28/20173/1/201824null
Betty3/1/20202511/28/20173/1/201825null
Betty4/1/20202611/28/20173/1/201826null
Betty5/1/20202711/28/20173/1/201827null
Betty6/1/20202811/28/20173/1/201828null
Betty7/1/20202911/28/20173/1/201829null
Betty8/1/20203011/28/20173/1/201830null
Betty9/1/20203111/28/20173/1/201831null
Betty10/1/20203211/28/20173/1/201832null
Betty11/1/20203311/28/20173/1/201833null
1 ACCEPTED SOLUTION
mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

I don´t know if I have well understood the logic.

You can find my pbi file here

https://1drv.ms/u/s!Aj45jbu0mDVJi0mCXzbYm_x0836N?e=FwflhI

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
mangaus1111
Solution Sage
Solution Sage

Hi @Anonymous ,

I don´t know if I have well understood the logic.

You can find my pbi file here

https://1drv.ms/u/s!Aj45jbu0mDVJi0mCXzbYm_x0836N?e=FwflhI

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.