Found a workaround, but not happy with how convoluted it is.
Created a helper column in the data set combining [Size/Gender] and [No.] ([Size/Gender]&" - "&[No.]) which presents the data as a single string (e.g. 10in - Female - 2). I hate it taking away the dynamics of calculating a value but… whatever. It stinks and I can’t see another solution.
Using this new string (named [Combo]) I’ve put together a template that allows me to call each row of the report individually:
<<INDEX(SPLIT((SELECT(Picklist Summary Table[Combo], TRUE,FALSE)), " , "),1)>>
This is absolutely MacGyvered bollocks, but it works. The SELECT statement grabs all the values from [Combo] as a single string separated by commas, the SPLIT statement snips them into individual values, the INDEX command grabs each row according to the number (in bold and underlined above) at the end of the command.
The issue with this is that the above command has to be copy pasted as many times as there are rows. Now, as my report is dynamic (e.g. each week there might not be 20 rows in the report) I have copy pasted it 40 times to be safe. So the template looks like this:
Report<<INDEX(SPLIT((SELECT(Picklist Summary Table[Combo], TRUE,FALSE)), " , "),1)>><<INDEX(SPLIT((SELECT(Picklist Summary Table[Combo], TRUE,FALSE)), " , "),2)>>
<<INDEX(SPLIT((SELECT(Picklist Summary Table[Combo], TRUE,FALSE)), " , "),3)>>
|
<<INDEX(SPLIT((SELECT(Picklist Summary Table[Combo], TRUE,FALSE)), " , "),4)>>
|
<<INDEX(SPLIT((SELECT(Picklist Summary Table[Combo], TRUE,FALSE)), " , "),5)>>
|
<<INDEX(SPLIT((SELECT(Picklist Summary Table[Combo], TRUE,FALSE)), " , "),6)>>
|
<<INDEX(SPLIT((SELECT(Picklist Summary Table[Combo], TRUE,FALSE)), " , "),7)>>
|
<<INDEX(SPLIT((SELECT(Picklist Summary Table[Combo], TRUE,FALSE)), " , "),8)>>
|
<<INDEX(SPLIT((SELECT(Picklist Summary Table[Combo], TRUE,FALSE)), " , "),9)>>
|
etc. which results in blank rows in the e-mail.
It does what it needs to do but it’s absolutely barbaric in its conduct and in no way neat or tidy.
Answers on a postcard about how to crib the above to only grab the rows in the report…