https://community.tableau.com/thread/211365
画一个pie chart然后做标记的时候,只希望标记前5个时:
create calculated field:(top5)
IF RANK(SUM(factor)) <= 5 THEN ATTR([p_lodging]) END
然后把它拖进“label”那里,
右击 -> “computing using" -> p_lodging
调整pie chart 上面的位置,
只需要把凡例那里的位置上下的移动,pie chart 上面的位置也会移动,神奇。
画一个pie chart,第6块开始把小的都合并起来。
https://kb.tableau.com/articles/howto/creating-a-pie-chart-with-individual-slices-for-top-n-and-single-slice-for-other-values
The below instructions use Sample - Superstore data to show the top 5 states by profit in a pie chart.
Right-click State and select Create > Set
Name the set Top States by Profit.
Select the following options, then click OK:
Top
By Field
Top 5 by Sales Sum
Select Analysis > Create Calculated Field.
Name the field Top and Other.
Enter the following formula, then click OK:
IF [Top States by Profit] then [State] ELSE ‘Other’ END
Select Pie on the Marks card.
Place SUM(Sales) on Angle.
Place Top and Other on Color.