Forum Discussion
Anonymous
6 years agoNot applicable
Complex Calculated Column
Hi Team, How do I create a calculated column that adds the 2 columns? I have 2 tables - Table1 and Date table. Table1: - Date1 Add_Days Final Date 1/1/2017 10 1/2/2017 15 ...
- 6 years ago
Hi Anonymous ,
You may create relationship between Table1 and Date table on date field first of all, then create columns in Date table like DAX below.
Rank1 = RANKX(FILTER(Date, Date[WorkDay]=1),Date[Date],,ASC) Add working days = LOOKUPVALUE(Date[Date],Date[WorkDay],1,Date[Rank1],Date[Rank1]+RELATED(Table1[Add_Days]))Finally, you can create column in Table1.
Final Date=RELATED(Calendar[Add working days])Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-xicai
Community Support
6 years agoHi Anonymous ,
You may create relationship between Table1 and Date table on date field first of all, then create columns in Date table like DAX below.
Rank1 = RANKX(FILTER(Date, Date[WorkDay]=1),Date[Date],,ASC)
Add working days = LOOKUPVALUE(Date[Date],Date[WorkDay],1,Date[Rank1],Date[Rank1]+RELATED(Table1[Add_Days]))
Finally, you can create column in Table1.
Final Date=RELATED(Calendar[Add working days])
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.