Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I am fairly new and not sure why I get error Invalid Dimension for this expression in my table when I have others similar working.
=Sum({<Group={'CG'},TS = {'QS'},PCat = {'Premium'}>}Revenue) + Sum({<Group={'CG'},brand = {'Services'}>}Revenue)+ Sum({<Group={'CG'},brand = {'Wks'}>}Revenue) + Sum({<Group={'CG'},brand = {'Options'}>}Revenue) / Sum({<Group={'CG'}>}Revenue
If there is a better way to write this as well I am eager to learn.
Since you are adding four expressions, I would try each individual expression to see which one causes the error.
If that fails, you might try using rangesum instead of +.
Now i see the division.
Do you really mean to do:
Sum({<Group={'CG'},brand = {'Options'}>}Revenue) / Sum({<Group={'CG'}>}Revenue
Or did you want the four expressions summed first and then divide?
So I think maybe the expression may not be the issue as I tried just Sum({<Group={'CG'}>}Revenue) and still get the error, even though I have this expression in another column where it works without error. If I change the expression to just =Revenue the error is gone.
Thanks so much, built it as a measure and it works.