Forum Discussion
Rookarumba
Helper III
8 years agoM Language : How to write M to match date that is in-between two dates
Hi Everyone, I need some advice or help to write a M syntax that matches a date that fall within a date range in another table. E.g. Table 1 ID | Production Date 1 | 2015 Table 2 ...
- 8 years ago
Hi Rookarumba,
You could first merge two tables with Full Outer Join, then, filter rows based on specific condition.
Add below filter code in Advanced editor.
#"Filtered Rows" = Table.SelectRows(#"Expanded Table2", each [Production Date] >= [Table2.Production Start] and [Production Date] <= [Table2.Production End])
Best regards,
Yuliana Gu
v-yulgu-msft
Microsoft Employee
8 years agoHi Rookarumba,
You could first merge two tables with Full Outer Join, then, filter rows based on specific condition.
Add below filter code in Advanced editor.
#"Filtered Rows" = Table.SelectRows(#"Expanded Table2", each [Production Date] >= [Table2.Production Start] and [Production Date] <= [Table2.Production End])
Best regards,
Yuliana Gu
roygervase
4 years agoFrequent Visitor
What if you wanted to put in fixed dates like 1/1-2018 to 12/31/2018?