简体   繁体   English

Tableau 桌面平均线粒度错误

[英]Tableau desktop average line granularity error

[14 day sales trend,split by student type][1] I was trying to plot an average line for the sales over the past 14 days. [14 天销售趋势,按学生类型划分][1] 我试图绘制过去 14 天销售的平均线。 I have used average line in analytics pane for the entire table.我在整个表格的分析窗格中使用了平均线。 And I have made bar chart to stacked bar chart by splitting the sales on each day with old/new student types.我通过将每天的销售额与旧/新学生类型分开,将条形图制作成堆叠条形图。 The average line was at ~470 when I tried without adding student type to "color" in marks card.当我尝试不将学生类型添加到标记卡中的“颜色”时,平均线约为 470。 The average line moved to 235 when I have added student type to "color" however the tooltip is showing ~470.当我将学生类型添加到“颜色”时,平均线移动到 235,但工具提示显示 ~470。 The granularity level tableau taking is the student type but I need it at the day level.粒度级别的画面采用是学生类型,但我在日级别需要它。 What change should I make to bring back the average line to the correct value ie, 470 showing the student type details too.?我应该做哪些改变才能将平均线恢复到正确的值,即 470 也显示学生类型的详细信息。?

Two points:两点:

  1. As you stated, you have configured the average line to be calculated across the whole table, which should result in the average line calculation ignoring any more granular levels of detail.正如您所说,您已配置要在整个表中计算的平均线,这应该会导致平均线计算忽略任何更细粒度的细节级别。 Since your line is moving as you add more dimensions to the view, this behavior indicates that you may have configured your average line to display AVG(Sales) Average, instead of SUM(Sales) Average.由于您的线条随着您向视图添加更多维度而移动,因此此行为表明您可能已将平均线配置为显示 AVG(Sales) A​​verage,而不是 SUM(Sales) A​​verage。 Right-click the average line and choose Edit.右键单击平均线并选择编辑。 Then, change the Value selectors to SUM(Sales) Average.然后,将值选择器更改为 SUM(Sales) A​​verage。

  2. When you add an average line from the analytics pane, this metric does not automatically also get added to the tooltip.当您从分析窗格添加平均线时,此指标不会自动添加到工具提示中。 So, comparing the value of the average line to what you have in the tooltip is likely not a valid, "apples to apples" comparison.因此,将平均线的值与工具提示中的值进行比较可能不是有效的“苹果对苹果”比较。 Check to see if you may have added AVG(Sales) somewhere else in the view in addition to adding the average line from the analytics pane.检查您是否除了从分析窗格添加平均线之外,还可能在视图中的其他位置添加了 AVG(Sales)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM