My field has many distinct names such as:
Partner
Partner UK
Partner USA
Associate - Senior
Associate - Junior
Junior Associate
And so on (more in the data than i've included here).
I was originally pivoting my data as follows:
...pivot (count([NAME] for employee_rank in ([Partner], [Associate], [Analyst]) as pivottable
Until I realised I was missing all the sub-variants of each level.
Is it possible to make the pivot categories more flexible such as:
...pivot (count([NAME] for employee_rank in ([LIKE '%Partner%'], [LIKE '%Associate%'], [LIKE '%Analyst%']) as pivottable