Forum Discussion
Custom column: Add text to data for different
Hello,
I have a column that calculates the date data coming from Excel according to today.
If the data in this column starts with "-" then "Days Left", if it doesn't starts with "-", I want to bring "Days Passed" text.
Like this:
Thank you for help.
Anonymous , Try a new column like
Kalan Gün =
var _1 = DATEDIFF(Liste[Bir Sonraki Validasyon Tarihi],TODAY(),DAY)
return
if(_1 <0, _1 & " Days Left" , _1 & " Days Passed")Anonymous
you can create your column like below
Column=var diff = DATEDIFF('Date'[Date].[Date],TODAY()-50,DAY)returnif (diff<0,diff&"-Days Left",diff&" days Passed")let me know if it works for you or not. thanks
3 Replies
- negi007Community Champion
Anonymous
you can create your column like below
Column=var diff = DATEDIFF('Date'[Date].[Date],TODAY()-50,DAY)returnif (diff<0,diff&"-Days Left",diff&" days Passed")let me know if it works for you or not. thanks
- amitchandakSuper User
Anonymous , Try a new column like
Kalan Gün =
var _1 = DATEDIFF(Liste[Bir Sonraki Validasyon Tarihi],TODAY(),DAY)
return
if(_1 <0, _1 & " Days Left" , _1 & " Days Passed") - AnonymousNot applicable
Thank you both for your help.