Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Dynamic search in set analysis

I have the following calculated dimension:

=aggr(only({

< InvoiceID=P({<Payment={'$(vRule01)'}>} InvoiceID )>

*

< InvoiceID=P({<Payment={"=replace(Payment,'.',vRule02)"}> } InvoiceID )>

*

< InvoiceID=P({<[Purchase Type]={'$(vRule03)'}>} InvoiceID )>

*

<InvoiceID=P({<InvoiceID={"CreatedBy=ChangedBy"}>} InvoiceID)>

)

} InvoiceID) ,InvoiceID)

What I need to do here is to replace the hard-coded "ChangedBy" field in the last set analysis, with a variable such as vRule04, where depending on some other external events would pass the ChangedBy field or some other field (like ApprovedBy)  to the set analysis.

Can someone provide the correct syntax.

1 Solution

Accepted Solutions
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I think it would be

CreatedBy=$(vRule04)


Have you tried that?

-Rob

View solution in original post

2 Replies
rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

I think it would be

CreatedBy=$(vRule04)


Have you tried that?

-Rob

Not applicable
Author

Had tried it before posting this with no success. Tried it again after your suggestion and now it works!. Thanks for your response and time.