Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
wanyunyang
Creator III
Creator III

pivot table differentiate numbers within the same dimension

I have a table Type:

Type

Apple

Banana

I have a table Target:

SalesArea, FoodType, Target

A                  Apple        100

A                  Banana      200

B                  Apple        150

B                  Banana      250


These two tables in my model can't be linked together, or there will be a circular reference. And I have to use Type as a dimension. So with dimension: Type, SalesArea, with measure: Target, the pivot table is like:

111.PNG

Which is apparently wrong. How can I show the right pivot table, which should be:

222.PNG

Thanks in advance for helping!!!


1 Solution

Accepted Solutions
sunny_talwar

May be this

Sum(If(Type = FoodType, Target))

View solution in original post

1 Reply
sunny_talwar

May be this

Sum(If(Type = FoodType, Target))