I have a powershell script that passes in a parameter called widgets into a Widgets macro. The Widgets macro uses slicers to return the total cost of the Widgets sold.
Up until now I have only ever needed to total up 1 type of Widget however I would now like to combine multiple widgets (e.g. the total sales for both Red and Blue Widgets). I have tried passing in "Red Widgets, Blue Widgets" but the code is looking for a Widget called Red Widgets, Blue Widgets.
I suspect I need to use an array but in the majority of cases I only need to look up the total cost for one type of Widget.
I have provided what I think is the relevant parts of my code and was wondering if you could assist me in adapting it to work as required.
'
Bookmarks