Forum Discussion
DenysKryvulskyi
5 years agoRegular Visitor
List orders between Sales plan start date & end date
Hi All!
Need help. I have a report with Plan & Fact of orders.
I need filter this orders between Sales plan Start Date & Sales Plan End Date.
Order has a Date of Sale. I need to understand which order falls within the sales plan period.
Many thanks!
DenysKryvulskyi
You can follow the following pattern but I am not sure how your data model is built, anyhow please adopt this code and modify as per your model. You can click on New Table on the modeling tabl and paste itOrder List within plan= FILTER( orders, orders[date of sales] >= max('Sales plan'[Start Date]) && orders[date of sales] <= max('Sales plan'[End Date]) )
2 Replies
- Fowmy
Super User
DenysKryvulskyi
You can follow the following pattern but I am not sure how your data model is built, anyhow please adopt this code and modify as per your model. You can click on New Table on the modeling tabl and paste itOrder List within plan= FILTER( orders, orders[date of sales] >= max('Sales plan'[Start Date]) && orders[date of sales] <= max('Sales plan'[End Date]) )- DenysKryvulskyiRegular Visitor
Many thanks! It works 🙂