简体   繁体   English

BigQuery 和 Tableau 的不同结果

[英]Different results BigQuery and Tableau

Hello guys when i try to calculate median and average in my BigQuery and Tableau i get different results even though I am using same numbers and rows.大家好,当我尝试在 BigQuery 和 Tableau 中计算中位数和平均值时,即使我使用相同的数字和行,我也会得到不同的结果。 Is there something I should know?有什么我应该知道的吗?

For example;例如;

In BiQuery在 BiQuery 中

select district, avg(sales) from table name select 地区,平均(销售额)来自表名

In Tableau在画面中

Using district as dimension and select average of sales from the maxcard drop down menu.使用地区作为维度和 select maxcard 下拉菜单中的平均销售额。

Surprisingly the output from the two are not the same.令人惊讶的是,两者的 output 并不相同。

Any one knows what might be a problem that I should know?任何人都知道我应该知道什么可能是个问题?

Thanks!谢谢!

Hi matt_black just got the solution, because in Tableau i made a join with polygon data when this happens it duplicates the data in the Tableau hence different results.嗨 matt_black 刚刚得到了解决方案,因为在 Tableau 中,当发生这种情况时,我与多边形数据进行了连接,它复制了 Tableau 中的数据,因此结果不同。

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

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