Qlik Community

QlikView Creating Analytics

Discussion Board for collaboration related to Creating Analytics for QlikView.

pdelvito
New Contributor II

Calculated Dimension help

Hello All,

I don’t have access to my qvw script however, I am trying to create a calculated dimension that uses a flag (Y/N) to determine a qualifying category based off the Customer. I want to be able to look at the customer in a table and use the Qualifying Category to sum revenue. Here how I want the qualifying catergory to look like.

Customer,Flag,Category,Revenue,Qual_Category

1,Y,A,100,A

1,N,B,50,A

2,Y,C,100,C

2,N,D,50,C

I am able to use an if statement for the first true condition if(Flag=’Y’,Category, but trying to get the match based off of the customer is where I am having issues. Thank you

1 Reply
erich_shiino
Honored Contributor

Calculated Dimension help

you could use aggr to create your dimension:

=aggr(  if( Flag='Y', Category) , Customer, Flag))

but I didn't get the pattern to generate the Qual_Category. If you explain, we can try to write the condition..

Hope this helps for now...


Erich

Community Browser