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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

how to add today days to another date

how to add today days to another date

orderdate: 1st dec 2021 

today date: 8th dec 2021

Required output is 9th dec 2021

 

required dax

 

@amitchandak 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , A new column

 

[Order Date] + day(Today())

 

 

a new measure

max(Table[Order Date]) + day(Today())

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , A new column

 

[Order Date] + day(Today())

 

 

a new measure

max(Table[Order Date]) + day(Today())

Anonymous
Not applicable

its working for me

Anonymous
Not applicable

@amitchandak  im trying to achieve this condition in power bi..

condition: 

// then If(([USAGE_DATE]<=Max(DateAdd("dd",Day(DateTimeNow()),[SelectedMonthYear]))) and ([USAGE_DATE]>=Max(DateAdd("mm",-5,DateTimeNow()))),"Y","N")
 
but max function cant access values instead of column..could you please help me on this how to achieve this statement If(([USAGE_DATE]<=Max(DateAdd("dd",Day(DateTimeNow()),[SelectedMonthYear]))) and ([USAGE_DATE]>=Max(DateAdd("mm",-5,DateTimeNow()))),"Y","N")
 
Power BI Dax: trying
_MeqY2 =
// then If(([USAGE_DATE]<=Max(DateAdd("dd",Day(DateTimeNow()),[SelectedMonthYear]))) and ([USAGE_DATE]>=Max(DateAdd("mm",-5,DateTimeNow()))),"Y","N")

var adddays = DAY(TODAY()) + [_SelectedMonthYear]
var last5 = DATE(YEAR(TODAY()), MONTH(TODAY())-5,1)
return
IF( 'Usage Tracking'[USAGE_DATE] <= MAX(adddays) && 'Usage Tracking'[USAGE_DATE] >= MAX(last5),1,0)
 
thimmaraju_0-1638976269145.png

 



 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors