cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
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

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

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors