Calculation fail with use of criteria on dimensions
This calculation shows the correct result with no criteria on the dimension. But if you limit the dimensions via another object, the calculations fail. Except for the dimension "Bjerringbro by". It must have something to do with it being the first in the calculation. But I can’t see why. Can I add something to the calculation so that the results can be displayed for all the dimensions when it is limited on those?
if allcount(d1:0, 0, m1) = allcount(d1:@"[Bjerringbro by]", 0, m1) then sum(@"[Bjerringbro by]", 0, m1) / 12 else if allcount(d1:0, 0, m1) = allcount(d1:@"[Viborg Midtby]", 0, m1) then sum(@"[Viborg Midtby]", 0, m1) / 21 else if allcount(d1:0, 0, m1) = allcount(d1:@"[Viborg Nordvestby]", 0, m1) then sum(@"[Viborg Nordvestby]", 0, m1) / 19 else sum(0, 0, m1)









Comments
6 comments