Skip to main content
Announcements
Intermittent issues logging into the Qlik Community. We are working toward a resolution.
cancel
Showing results for 
Search instead for 
Did you mean: 
saivina2920
Creator
Creator

How do we get count in text label from chart straight table in qlikview

How do we get count in text label from chart straight table in qlikview.

I have the below dimensions and expression in my chart straight table and it contains the sum of total of every expressions.

the same sum of total expressions, i just want to display in my separate text object.

Is it possible to do this..?

Table Dimensions

=If(vUserInput, if(IsNull(EMP_RELIEVE_DATE) AND [EMP_STATE]='$(vEmPlaces)', EMP_RESIGN_DATE), if(not IsNull(EMP_RELIEVE_DATE) AND [EMP_STATE]='$(vEmPlaces)', EMP_RELIEVE_DATE))

Exp1 : "Relieving_Date"

=If(vUserInput, if(IsNull([EMP_RELIEVE_DATE]) AND [EMP_STATE]='$(vEmPlaces)', Date(EMP_RESIGN_DATE+vUserInput)), if(not IsNull([EMP_RELIEVE_DATE]) AND [EMP_STATE]='$(vEmPlaces)', EMP_RELIEVE_DATE))

Exp2 : 1-10days

if([Relieving_Date]>=vCalDate10 And [Relieving_Date]<=vToday AND [EMP_STATE]='$(vEmPlaces)',1,0)

 

 

Labels (2)
1 Solution

Accepted Solutions
QFabian
Specialist III
Specialist III

Hi @saivina2920 , you can put your expressions in text boxes, but you have to be sure if there is a aggregation needed.

For example, your expressions doesnt have a SUM or COUNT or any valid aggregation, so, if there is mote than one record/row involved in your selections, that expression isnt goinf to work.

just add a sum or  count for chechink that

=sum/count(If(vUserInput, if(IsNull([EMP_RELIEVE_DATE]) AND [EMP_STATE]='$(vEmPlaces)', Date(EMP_RESIGN_DATE+vUserInput)), if(not IsNull([EMP_RELIEVE_DATE]) AND [EMP_STATE]='$(vEmPlaces)', EMP_RELIEVE_DATE)))

 

QFabian

View solution in original post

1 Reply
QFabian
Specialist III
Specialist III

Hi @saivina2920 , you can put your expressions in text boxes, but you have to be sure if there is a aggregation needed.

For example, your expressions doesnt have a SUM or COUNT or any valid aggregation, so, if there is mote than one record/row involved in your selections, that expression isnt goinf to work.

just add a sum or  count for chechink that

=sum/count(If(vUserInput, if(IsNull([EMP_RELIEVE_DATE]) AND [EMP_STATE]='$(vEmPlaces)', Date(EMP_RESIGN_DATE+vUserInput)), if(not IsNull([EMP_RELIEVE_DATE]) AND [EMP_STATE]='$(vEmPlaces)', EMP_RELIEVE_DATE)))

 

QFabian