我有一个费用文件,其中包含每个与会者的单独记录,但会重复总费用金额。Spotfire多个级别的总和
Employee Report ID Transaction Date Vendor City/Location Expense Type Approved Amount Attendee Name
John Smith A 4/20/2016 UNITED AIRLINES NYC Airfare 317.1 Jane smith
John Smith A 4/20/2016 UNITED AIRLINES NYC Airfare 317.1 jack smith
John Smith A 4/20/2016 UNITED AIRLINES NYC Airfare 317.1 tom white
John Smith A 4/20/2016 Bar and Grill NYC Dinner 94.74 kelly thompson
John Smith A 4/20/2016 Bar and Grill NYC Dinner 94.74 joan ellen
John Smith A 4/20/2016 Bar and Grill NYC Dinner 94.74 albert coals
我需要在不重复费用金额的情况下按城市总和费用总额。我曾尝试以下自定义表达式,而在城市做一个交叉表:
Sum(max([Approved Amount]) over (Intersect([Transaction Date],[Vendor])))
但是,这已经导致
City Amount
NYC 1235.52
我正在寻找像
City Amount
NYC 411.84
任何建议结果将不胜感激。
您是否拥有订单项ID或某种方式来唯一标识费用记录? – niko
该记录没有唯一标识符。 – cookiemnstr247
会有没有完全重复的行?即同一数量的同一参加者以及城市和供应商和员工等...? – scsimon