如何在表格中计算当前 1 年

编程入门 行业动态 更新时间:2024-10-10 02:21:22
本文介绍了如何在表格中计算当前 1 年的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在使用 Tableau 8.2,我想显示当前和上一年的计算,如何动态应用它?如果年份是手动编写的,这将成为可能,但这只是临时解决方案,如何动态地做到这一点?即在应用过滤器 Year=2013 时,应显示当前 1 年的销售和订单值我在列上有销售和订单.

I am using Tableau 8.2,I want to show calculations for current as well as previous year,how to apply this dynamically? it is getting possible if the year is written manually but it will be only temporary solution, how to do that dynamically? i.e on applying filter Year=2013 then sales and orders value of current-1 year should be displayed I have sales and orders On the Columns.

推荐答案

对此的快速解决方案是使用查找功能为上一年的销售额创建一个新的计算字段.

A quick solution to this would be to create a new calculated field for previous year sales by using the Lookup function.

例如:

LOOKUP(SUM([SALES]),-1)

这篇关于如何在表格中计算当前 1 年的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

更多推荐

[db:关键词]

本文发布于:2023-05-01 11:26:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1408548.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表格   如何在

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!