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

One dimention to select certain variable in expression

Hello Team,

I am trying to bring in one dimention (Related Collateral =Y) to my query.  However, every time i am trying it getting null value.

How can I incorpotate (Related Collateral =Y) to my expression, please help.

DDe.PNG

Many Thanks in advance.


Regards

Mohi

8 Replies
vinieme12
Champion III
Champion III

Using SetAnalysis

count({<Related Collateral ={'Y'} >}  [YourFieldName] )

Set Analysis: syntaxes, examples

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
mohiahmed
Contributor III
Contributor III
Author

Thanks Pujari, however when I add that to second part of my expression it coming up with an error

Please help

 

count

({<[Related Collateral] ={'Y'} >}[New Unsecured DD SLA])/count({<[Related Collateral] ={'Y'}>}(total<[Processing Area]>[New Unsecured DD SLA]))

vinieme12
Champion III
Champion III

Learning Set Analysis from Scratch

A Primer on Set Analysis

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
adamdavi3s
Master
Master

Looks like it might just be an extra bracket set in there to me

count({<[Related Collateral] ={'Y'} >}[New Unsecured DD SLA])

/

count({<[Related Collateral] ={'Y'}>}total<[Processing Area]>[New Unsecured DD SLA])

vinieme12
Champion III
Champion III

count({<[Related Collateral] ={'Y'} >}[New Unsecured DD SLA])

/

count(TOTAL <[Processing Area]> {<[Related Collateral] ={'Y'}>} [New Unsecured DD SLA])

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
marcus_sommer

Try this:

count({<[Related Collateral] ={'Y'} >} [New Unsecured DD SLA]) /

count({<[Related Collateral] ={'Y'}>} total<[Processing Area]> [New Unsecured DD SLA])

- Marcus

Anil_Babu_Samineni

Remove parenthesis of before Total and then remove one more of end part.

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
adamdavi3s
Master
Master

well done for copying at least two of the above answers