Forum Discussion
Anonymous
4 years agoNot applicable
Comparing two columns- if single date value is in two weeks in all another column values
Hello everyone, I'm new to DAX syntax. Couldn't figure this out. Looks easy but challenging. Here is the situation: Comparing two date column. If a single [created_date] column value is in the l...
- 4 years ago
Hi Anonymous ,
First create a column as below:
last date = 'Table'[appointment_date]-14Then create a dim table:
dim = ADDCOLUMNS(SELECTCOLUMNS('Table',"start date",'Table'[last date],"end date",'Table'[appointment_date]),"key",1)Finally create a column as below:
dim = ADDCOLUMNS(SELECTCOLUMNS('Table',"start date",'Table'[last date],"end date",'Table'[appointment_date]),"key",1)And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my reply as a solution!
v-kelly-msft
Community Support
4 years agoHi Anonymous ,
First create a column as below:
last date = 'Table'[appointment_date]-14
Then create a dim table:
dim = ADDCOLUMNS(SELECTCOLUMNS('Table',"start date",'Table'[last date],"end date",'Table'[appointment_date]),"key",1)
Finally create a column as below:
dim = ADDCOLUMNS(SELECTCOLUMNS('Table',"start date",'Table'[last date],"end date",'Table'[appointment_date]),"key",1)
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!