Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Simo
Contributor II
Contributor II

Trendline based on filters

Hello,

I have a graph, where I want to add trendline as in image attached. 

I'm currently using this:

if(wildmatch(GetFieldSelections([Dose_StudyDescription]),'*GD1AA*') and (WildMatch(DoseEvent_AcquisitionProtocol,'*PA*','*AP*')),100,

It works fine if I have only one filter selected (PA or AP), but I would like to have it working such way that you could select also both. 

Essentially I would change filter panel so that it would show only one selection for these two like in below.

if(WildMatch(DoseEvent_AcquisitionProtocol,'*PA*','*AP*'), 'PA', and then just select PA and it would show the trendline.

Could this be done and how?

-Simo

 

 

 

Labels (1)
1 Reply
MatheusC
Specialist II
Specialist II

You can create a field in your script by unifying the values:

Table:
Load
if(WildMatch(DoseEvent_AcquisitionProtocol,'*PA*','*AP*'), 'PA','Others') as NewField,
DoseEvent_AcquisitionProtocol,
....
From[ ](qvd);


So in the graph it would be enough to use:

and (Match(NewField,'PA’)),100


- Regards,Matheus

Did you find a solution to your question? Mark the solution as accepted and if you found it useful, press the like button!