2 Replies Latest reply: Aug 26, 2011 2:37 AM by Kaushik Solanki RSS

    Comparing two columns in set analysis



      I have a fact table which contains Id1, Id2, Type, ItemCount. As per business, there should be a unique combination of Id1 and Id2. But in fact table more than one Id2 value is available for a particular Id1 value.


      So to find out the unique combination, we have another table which contains Id1 and UniqueId2.


      I want to show the sum of ItemCount for each Id1 which have the Type = 'A'....like count(if(Id2=UniqueId2 and Type='A',ItemCount))


      But this value should not be changed by the selections in "Type" filter...


      How to achieve this?