This did not work in my set analysis, presumably because calculated variables do not work as field names in set analysis. I have been unable to find an explanation for this, but that has been my experience.
I have tried to simply use multiple fields in my set analysis but only one is ever accepted:
I have the concatenation ($(vYrPrdLeft)) as a filter on the sheet and when “201685” is selected, the correct total number is returned:
When I clear the filter and use this as my expression:
Alternatively, I tried to create a calculated field in the data load:
[gl.Yr]&[gl.Prd]&left([Gl-code],1) AS “vYrPrdLeft”
This threw an error so I tried to add it as a variable which did not throw an error but was ignored completely. At the end of my data load, I added:
LET vYrPrdLeft = [gl.Yr]&[gl.Prd]&left([Gl-code],1)
I also tried it without the LET:
vYrPrdLeft = [gl.Yr]&[gl.Prd]&left([Gl-code],1)
These were all ignored and did not become available in the sheet.
How can I use set analysis or a variable or a calculated field to lock down those three fields? I’m open to other ways to do this too. IF won’t work since it will just be looking to see if something is true, which it won’t be unless those fields are selected.