We have seen one example of performing string manipulation in a macro to swap the columns of a slicer in Chapter 7, Working with Dimensional Models. In this recipe, I will show you more macro functions to manipulate the values and how to achieve the required functionality using them.
Let's say that a report is required to show sales by Date and Product line. This report should show data only for the current month (full month).
Create a simple list report with Date, Product line, and Quantity as columns:
In this recipe, we will see how to use some useful macro functions like