jaspersoftスタジオ6.2を使用しています。私は要約バンドに棒グラフを入れました。値式の中のいくつかのフィールドを区別するために、どのように設定できますか?例: 別のクエリを実行せずに私のグラフ内で個数を取得するには?
私はこのクエリ/データセットを持っている:
select 'xx' as UsageDate, 'a' as ProductName, 1 as CustomerKey
union all select 'xx' as UsageDate, 'b' as ProductName, 1 as CustomerKey
union all select 'xx' as UsageDate, 'a' as ProductName, 2 as CustomerKey
union all select 'yy'as UsageDate, 'a' as ProductName, 1 as CustomerKey
union all select 'yy' as UsageDate, 'b' as ProductName, 3 as CustomerKey
私は何を達成したいことは、カテゴリ、productname
ているシリーズであること
select usagedate, productname, count(distinct customerkey) as val from (
select 'xx' as UsageDate, 'a' as ProductName, 1 as CustomerKey
union all select 'xx' as UsageDate, 'b' as ProductName, 1 as CustomerKey
union all select 'xx' as UsageDate, 'a' as ProductName, 2 as CustomerKey
union all select 'yy'as UsageDate, 'a' as ProductName, 1 as CustomerKey
union all select 'yy' as UsageDate, 'b' as ProductName, 3 as CustomerKey
) as t
group by usagedate, productname
usagedate
です。グラフの値をcount(distinct customerkey)
に設定するにはどうすればよいですか?私はデータセットとして2番目のクエリを使用することができ、チャートの値としてvalフィールドを設定することができますが、私はまた、クエリ/データセットだけを好むので、レポートの詳細を表示する必要があります。
これは可能ですか?
で
reportElement
にsummary
バンドで使用したりすることができますので、報告書は、(カウントを終えた)詳細バンドを満たしている必要があるということですか?私はJava開発者でなく、Jasperスタジオを初めて使っています。しかし、それをする方法を学びたいと思います。私は伝統的なBIの世界(SSRS、OBI)から来ています。この種の操作は非常に簡単で直感的です。ジャスパーはJava開発者のためのものではありますが、学びたいと思っています。ありがとう。 – thotwielder@thotwielder、そこに行く、しかし、あなたはそれのハングアップを取得するいくつかのJavaが必要... ...)、楽しい –