You can use this code on top of any Datamart, just adjust the last line of the code with the name of your:
- Datamart Name
- Dimension column name, used for X axis values.
- Dimension column name, used for the series - , which forms the stack.
- Measure column name and operation, if you want to summarize the measure, or calculate the average, ..etc.
The result then looks like this:
...