如何在Tableau中隐藏GrandTotal的一些细节

问题描述

在我的报告中,我同时显示了形状(刻度)​​和文本作为内容。 现在,我只想在行,列中仅勾选标记,而在总计中仅仅文本。 但是,总计也会自动将刻度线应用于最终值。 我可以只显示总计中的值吗?

enter image description here

解决方法

您可以在此处附加球型虚拟数据。

Tableau可能没有直接选项来更改总计的标记类型。作为一种解决方法,它建议使用计算字段而不是总计,以便在两个字段中使用不同的标记。

我创建了一个名为Gtotal的calc字段(在Tableau示例超级存储数据中)

module.exports.perf = function(event,context,callback) {
  context.callbackWaitsForEmptyEventLoop = false;
  
  let input = JSON.parse(event.Records[0].body);

  const point1 = new Point('elapsedTime')
    .tag(input.monitorID,'monitorID')
    .floatField('elapsedTime',input.perf_value)
  writeApi.writePoint(point1)
  writeApi
  .close()
  .then(() => {
      console.log('FINISHED ... ')
  })
  .catch(e => {
      console.error(e)
      if (e instanceof HttpError && e.statusCode === 401) {
      console.log('Run ./onboarding.js to setup a new InfluxDB database.')
      }
      console.log('\nFinished ERROR')
  })
  return
};

得到了这个观点

Preview