基于计算的固定 LOD 表达式
Calculation based Fixed LOD expression
我正在尝试根据活动名称、活动开始日期和今天的日期(今天日期 - 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)}
我正在尝试根据活动名称、活动开始日期和今天的日期(今天日期 - 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)}