cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

Month Selected + 3

Hi all, 

 

Can anyone please let me know why can't I get my F_Date = month selected + 3 ? 

am I missing something here?

 

CALC_MONTH_Increase =
var F_Date = Calculate(SELECTEDVALUE(t_Missions[Date Début Effective].[MonthNo])+3)
Var S_Date = Calculate(SELECTEDVALUE(t_Missions[Date Fin Effective].[MonthNo]))
var(SELECTEDVAL T_Type = CalculateUE(t_Missions[Type Mission]))
Return
IF(T_Type="Courant";
Calculate(DATEDIFF(S_Date;F_Date;DAY)))
 
Thank you so much! 
 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Anonymous
Not applicable

Hi @Anonymous 

 

I think it depends on your data type. If you have to use ...[MonthNo] or not.

 

F_Date.JPGMonth.JPG

 

In my test I don't need to add .[MonthNo] because my month column is data typ "Whole number".

 

Best regards

Timo

View solution in original post

2 REPLIES 2
Highlighted
Anonymous
Not applicable

Hi @Anonymous 

 

I think it depends on your data type. If you have to use ...[MonthNo] or not.

 

F_Date.JPGMonth.JPG

 

In my test I don't need to add .[MonthNo] because my month column is data typ "Whole number".

 

Best regards

Timo

View solution in original post

Highlighted
Anonymous
Not applicable

Thanks. 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors