Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

3 Line Graphs-Conditional Display as per Input

Hi Expert ,

Here you can see 3 line graphs when Call Type field is blank.

Now the Call type may have 3 values (Project , Request and Problem)My requirement is to display the lines basis of Call Type selection .

Example :

If user select Call_Type as Problem, then only red graph should display

If user select 2 Call_Type i.e. Project and Request call type  then Only green and yellow line should display

and so on.

Call_type.PNG.png

Kindly help .Advance Thanks.

1 Solution

Accepted Solutions
tresesco
MVP
MVP

Conditional expression should be something like:

=SubStringCount(Concat(Distinct [Call Type], ',') , 'Problem')        // for expression related to problem

and similarly for other expressions.

Update: Corrected

View solution in original post

7 Replies
tresesco
MVP
MVP

Conditional expression should be something like:

=SubStringCount(Concat(Distinct [Call Type], ',') , 'Problem')        // for expression related to problem

and similarly for other expressions.

Update: Corrected

senpradip007
Specialist III
Specialist III

If you want that features use the following expressions as conditional on and off in Expressions Tab.

     Call_Type = 'Project'

     Call_Type = 'Request'

     Call_Type = 'Problem'

Not applicable
Author

Hi,

Thanks for your prompt reply and help.


Please let me know what will be the expression if user will select two Call_TYPE i.e. Project and Request to display green(Project) and Yellow(Request line only) and to remove red(Problem) line from the graph.


Thanks,

Rahul

Not applicable
Author

Hi Pradeep,

Thanks for your suggestion.


Please let me know what will be the expression if user will select two Call_TYPE i.e. Project and Request to display green(Project) and Yellow(Request line only) and to remove red(Problem) line from the graph.


Thanks,

Rahul

tresesco
MVP
MVP

Have you tried the expression with SubStringCount() as I have shown above?

Not applicable
Author

Thanks a lot....Its working fine  .

Appreciate your effort

Not applicable
Author

Hi Tresesco,

First I want to say thanks for your previous help again .

Now I have one more issue remain .Below is the expected output when user select Call Type as 'PROBLEM' and Support Group as ADM.

q1.PNG.png

But here it’s coming like below and you can see the Y axis has very different value from above

q2.PNG.png


Below is the code what I have written as script form PROBLEM (similarly for Request and Project)

LOAD
Ticket_ID as Ticket_ID_proj,
floor(Create_Date) as [Generic Date],
WeekName(date(num#([Create_Date]),'M/DD/YYYY'),0,-1) as [Generic Week],
MonthsName(1,date(num#([Create_Date]),'M/DD/YYYY')) as [Generic Month],
'Created Date'
as DateType
FROM
..\DATA\VisualFactory\LogCall.qvd
(
qvd)
where Call_Type = 'PROBLEM';

And here is the expression which I am using to display PROBLEM Graph

q3.PNG.png

Similarly Graph is not showing the correct values when selecting one or two call type.

Please help. Thanks in Advance


Best Regards,

Rahul Pathak