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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

concatenate string and year

Hi, 

Please i need your help , 

I want to create a new column with this statement : 

NewVintage =
Var test= CONCATENATE("<",VALUE(YEAR(TODAY()) - 4)) // <2019
 
return IF( Investee[LegalVintage] < YEAR(TODAY())- 4
, test
 
, Investee[LegalVintage]
)
 
But i have the following error :
ndris_0-1675868189869.png

can you help me please ? 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , I think data type issue

 

trye like

 

NewVintage =
Var test= CONCATENATE("<",VALUE(YEAR(TODAY()) - 4)) // <2019

return IF( Investee[LegalVintage] < YEAR(TODAY())- 4
, test

, Investee[LegalVintage] & ""
)

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , I think data type issue

 

trye like

 

NewVintage =
Var test= CONCATENATE("<",VALUE(YEAR(TODAY()) - 4)) // <2019

return IF( Investee[LegalVintage] < YEAR(TODAY())- 4
, test

, Investee[LegalVintage] & ""
)

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.