问题
I would like to calculate sub total in Spotfire cross table based on a condition and color the sub total row.
As shown in the table below, I would like to add sub total of all the rows by store except 'Watermelon' but show 'Watermelon' sales row in the table. Please let me know if this is possible.
Example below:
Cross Table:
Thanks for your help!
回答1:
Short Answer is No.
Sub Total and Grand Total is calculated based off the data in the visualization, regardless if you are rendering it or not so it's not "adjustable" without removing / limiting the data via custom expression or filters. The only real way around this would to create a Store named "Sub Total" which contained all of the data for all fruits excluding watermelon. It's not really recommended though.
Here was a similar post on this issue....
https://stackoverflow.com/a/38852432/6167855
https://stackoverflow.com/a/40177511/6167855
来源:https://stackoverflow.com/questions/40087125/spotfire-custom-sub-total