Crystal 报告:在图表上突出显示最小值和最大值
Crystal Reports: highlight minimum and maximum value on a chart
我正在努力在图表上突出显示最大值和最小值。图表专家的突出显示选项没有多大帮助。
有没有办法在图表上做到这一点?
创建 3 个公式。一个 return 只有最大值,第二个 return 最小值,然后另一个 return 所有数据减去最大值和最小值。
//max_value
If ({DETAILS.Qty Budget} = maximum({DETAILS.Qty Budget}))
then {DETAILS.Qty Budget} else 0
//min_value
If ({DETAILS.Qty Budget} = minimum({DETAILS.Qty Budget}))
then {DETAILS.Qty Budget} else 0
//all_data
If ({DETAILS.Qty Budget} = maximum({DETAILS.Qty Budget}))
or ({DETAILS.Qty Budget} = minimum({DETAILS.Qty Budget}))
then 0 else {DETAILS.Qty Budget}
转到图表专家,在 "Report Fields" 下您应该会看到 3 个公式。
将它们添加到 "Shows value(s):" 框中
- 转到 "Color Highlight" 选项卡并 select 新建。插入您的最大值和最小值公式并为每个公式指定条件 ( 因为我们只 selecting 最大值和最小值那些只选择 > 0 .
我的想法来自 SAP Support。
这对我适用于 Visual Studio 2017 的 CR 23。
我正在努力在图表上突出显示最大值和最小值。图表专家的突出显示选项没有多大帮助。
有没有办法在图表上做到这一点?
创建 3 个公式。一个 return 只有最大值,第二个 return 最小值,然后另一个 return 所有数据减去最大值和最小值。
//max_value
If ({DETAILS.Qty Budget} = maximum({DETAILS.Qty Budget}))
then {DETAILS.Qty Budget} else 0
//min_value
If ({DETAILS.Qty Budget} = minimum({DETAILS.Qty Budget}))
then {DETAILS.Qty Budget} else 0
//all_data
If ({DETAILS.Qty Budget} = maximum({DETAILS.Qty Budget}))
or ({DETAILS.Qty Budget} = minimum({DETAILS.Qty Budget}))
then 0 else {DETAILS.Qty Budget}
转到图表专家,在 "Report Fields" 下您应该会看到 3 个公式。
将它们添加到 "Shows value(s):" 框中
- 转到 "Color Highlight" 选项卡并 select 新建。插入您的最大值和最小值公式并为每个公式指定条件 ( 因为我们只 selecting 最大值和最小值那些只选择 > 0 .
我的想法来自 SAP Support。 这对我适用于 Visual Studio 2017 的 CR 23。