문제

I'm working on a crystal report and I want to insert a pie chart that shows percentages. I have a view that contains the field that I'm interested in : Descr(descrtiption) (NVARCHAR), I successfully added a command that gets the number of occurences of each Description. The problem is that when I try to add that field to the chart I can't see it,

here is the query that gets the values

enter image description here

here is the chart expert window I get

enter image description here

and as you can see the field is not checked in the field explorer

enter image description here

도움이 되었습니까?

해결책

You will need to shorten the memo field to be able to use it in this manner. Try:

CAST(Desc AS NVARCHAR(2000))

다른 팁

Use Having clause instead of where condition in query.

Select count(*) as NBoccurrence,descr 
From tbl_nm
Group by descr 
Having your condition
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top