Forum Discussion
Exclude current row from calculation
Anonymous
Is this a Table Visual or a table in the model?
Are Revenue and GP$ are measures or columns?
- Anonymous5 years agoNot applicable
Thanks @Fowmy GP$ is going to be a simple measure: revenue - cost. Revenue is a column. It's a visual. Also, I'm trying to make this solution work at any granularity. For instance, if, say, I have multiple aggregation levels, like, product segment that has many items. What will the result be if i were to drill up to the product segment? And, say, now there is even one more level, say, salesperson that has many segments, what will the result at that level? Thanks!
- Anonymous5 years agoNot applicable
Fowmy and Anonymous . I kind of got something working there. I'm yet to test it for multiple granularity levels. However, as you can see from the screen grab, the total at the bottom of GP_Impact% is wrong. The way I got it to work so far is by doing the calculation for avery row twice--once using the all() function and another without it and then dividing the two.