简体   繁体   English

在 tableau 中创建日期计算字段

[英]Creating a date calculated field in tableau

我在 tableau 中有一个开始日期和一个结束日期,有没有办法创建一个计算字段,其中包含从我的开始日期到结束日期的所有日期(月)?

If you're just looking for a visual solution, if you place a Month(date) discrete dimension in your columns bar, right click on it and click on 'Show missing values'.如果您只是在寻找可视化解决方案,如果您在列栏中放置了一个 Month(date) 离散维度,请右键单击它并单击“显示缺失值”。 That would force nulls to show, eg这将强制显示空值,例如在此处输入图片说明

Although what you have specifically asked for sounds like you're looking to do 'data densification' or 'data padding'.尽管您特别要求的内容听起来像是在进行“数据密集化”或“数据填充”。 You'd have to think about how that generated data would relate to the existing data.您必须考虑生成的数据与现有数据的关系。

It might also be easier to create a static file with the month/year in columns and (left) join that to the data set you are using.用列中的月/年创建静态文件并(左)将其加入您正在使用的数据集也可能更容易。 Then you have something you can reuse.然后你就有了可以重用的东西。 I'd recommend that approach.我会推荐这种方法。

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

相关问题 TABLEAU 计算的现场优化 - TABLEAU CALCULATED FIELD OPTIMIZATION Tableau计算字段过滤 - Tableau Calculated Field Filtering 如何通过使用数据源中的现有列创建计算字段在 Tableau 中创建漏斗视觉/条形图? - How to create a funnel visual/bar chart in Tableau by creating a calculated field using an existing column in the data source? 使用计算字段在 Tableau 中创建饼图 - Create Pie Chart In Tableau using Calculated field Tableau 在计算字段内添加过滤器 - Tableau add filter inside calculated field Tableau - 创建小倍数图表,显示 covid-19 疫苗副作用文本字段中各种关键字的频率 - Tableau - creating small multiples chart showing frequency of various keywords in a covid-19 vaccine side effect text field Quicksight 计算字段:平均值之和? - Quicksight Calculated field: sum of average? Biqguery table 将数据拆分为tableau中的日期表 - Biqguery table splits data into date tables in tableau 仅当字段在Tableau中具有一个条目时才计数 - count only if field has one entry in Tableau 场<fieldname>数据库中不存在tableau错误 - The field <fieldname> does not exist in the database tableau error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM