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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Create a dimension with a specific string

I want to create a dimension which filter the string '10PCMARFINAL' from field [Exposure Type]. I should not use SUM, but when I remove sum, I am getting error. What is the correct syntax?

Labels (1)
1 Solution

Accepted Solutions
trdandamudi
Master II
Master II

Give a try with the below: If this doesn't help, then please share a app with sample data and expected output.

=Aggr(Only({<[Exposure Type]={'10PCMARGINAL'}>} [Exposure Type]), Currency,[Discount Curve],[Maturity Bucket].[Trade ID])

Note: you need to list all your dimensions at the end in the above expression.

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try =If(Exposure Type]='10PCMARGINAL', [Exposure Type])


talk is cheap, supply exceeds demand
trdandamudi
Master II
Master II

Give a try with the below: If this doesn't help, then please share a app with sample data and expected output.

=Aggr(Only({<[Exposure Type]={'10PCMARGINAL'}>} [Exposure Type]), Currency,[Discount Curve],[Maturity Bucket].[Trade ID])

Note: you need to list all your dimensions at the end in the above expression.