Skip to main content
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?

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

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.