我正在尝试根据广告系列名称,广告系列开始日期和今天日期(今天日期 - 1(对支出求和。
下面是我创建的计算字段
{FIXED [CampaignName] : SUM({ FIXED
[CampaignName],[Date]>=[CampaignStartDate] AND [Date] <= [Today Date]: SUM([Spend])})}
但是计算显示 campaignName 中所有支出值的总和,不适用于在计算字段"[Date]>=[CampaignStartDate] AND [Date] <= [Today Date]"
中添加的日期范围。
请帮忙...
试试这个:
{FIXED [CampaignName] :
SUM(If [Date]>=[CampaignStartDate] AND [Date] <= [Today Date]
Then [Spend]
END)}