Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I am creating a reference line on a scatter chart where the x axis is set by a drop down from the variable extension. I would like to change the reference line expression depending on the axis value.
So far I have tried something like this:
Median(Aggr(Sum({$<BookFscYearStr = {'2017'}, FiscalQuarter = {'Q1'}>}NETSALESAMTUSD), If(vVariableSelector = 1, Region,Platform))
The expression doesnt seem to like the If Statement in the Aggr function.
I was thinking that if there was a generic way to refer to the x dimension than this wouldnt be an issue.
Something like:
Median(Aggr(Sum({$<BookFscYearStr = {'2017'}, FiscalQuarter = {'Q1'}>}NETSALESAMTUSD), x.dim)
However I havent found a way to generically refer to the x dimension.
Any ideas?
How do you change your dimension? If the variable decides which dimension to use, then this could work
Median(Aggr(Sum({$<BookFscYearStr = {'2017'}, FiscalQuarter = {'Q1'}>}NETSALESAMTUSD), $(=If(vVariableSelector = 1, 'Region', 'Platform')))
Hello,
Unfortunately this still isnt working. I have verified that by putting the variable in a text area that the values are changing from 1 to 2, but I dont think the aggr function likes the if statement in the second argument.
Jamey
Would you be able to share a sample to show the issue?