By the end of this chapter you will be able to:
- Create macros
- Use macros
Creating macros
- Create a macro:
- Find - Macros in the repository browser
- Right click and select Add Macro
- Configure the macro:
- Name:
NumOfWeeks
- Minimum Parameters:
2
- Maximum Parameters:
2
- Expression: create an expression to work out the number of weeks - as a whole number – between two dates
- Use the functions dateDiff() and round() to help with this
- Name:
- Press to save your new macro
Using Macros
- Create a new model:
Try Macros
- Drag the stream
MC Macro Terminated Customers
on to your model
...