Sorting Crystal Reports:基于年份类型的月份变更单

Sorting Crystal Reports:基于年份类型的月份变更单,sorting,crystal-reports,Sorting,Crystal Reports,我有一份报告列出了月份和一些数值。如果用户选择年类型作为“日历”,则报告将列出如下月份: Month ------- January February March April Month ------ July August September October 但如果用户选择“财政”年度类型,则报告需要列出如下月份: Month ------- January February March April Month ------ July August September October

我有一份报告列出了月份和一些数值。如果用户选择年类型作为“日历”,则报告将列出如下月份:

Month
-------
January
February
March
April
Month
------
July
August
September
October
但如果用户选择“财政”年度类型,则报告需要列出如下月份:

Month
-------
January
February
March
April
Month
------
July
August
September
October
我想我需要一个公式,它的开头是:

If {?YearType} = "Fiscal" Then....

我不太确定这之后该怎么办。请帮助。

您的数据库数据如何?我的数据库数据很好。事实上,我可以在我的数据库中按我的意愿列出我要运行的月份。当我在我的报告中尝试它时,它成为了一个问题。你们能发布关于月和年如何存储在数据库中的虚拟数据吗