Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

set analysis with dimension

Hi,

I have a table with all the parts and as dimension the catergory of the parts and as expression the sum of the price of the parts.

Now I want to add an excel with expected sale sum per catergory.

I tried this:

sum( {$<CATERGORY= {"='${DIMENSION_FIELD_NAME}'"} >} EXPECTED_SALES)

1 Solution

Accepted Solutions
thomas_skariah
Creator III
Creator III

Hi,

Find the attached application.

Hope this works.

Regards,

Tom

View solution in original post

6 Replies
whiteline
Master II
Master II

I think the correct syntax is:

sum( {$<CATERGORY= {"=$(DIMENSION_FIELD_NAME)"} >} EXPECTED_SALES)

But it depend on the value of DIMENSION_FIELD_NAME variable.

Not applicable
Author

It doesn't work.

The data is like this:

Table1:

PartNamePartCategoryPartValueWeekYear
Part1ABC2012012
Part2DEF1012012
Part3ABC10012012
Part4DEF9022012
Part5ABC8022012
Part6DEF9022012
Part7ABC8032012
Part8DEF2042012
Part9ABC2052012
Part10DEF1052012

Table2 :

PartCategoryBudgetWeekYear
ABC5012012
DEF5012012
ABC6022012
DEF6022012
ABC5132012
DEF5132012
ABC6142012
DEF6142012
ABC5252012
DEF5252012

And if 1 select week 2 i want to see:

PartCategorysumPartValueBudget
ABC8060
DEF18060
whiteline
Master II
Master II

What is DIMENSION_FIELD_NAME ?

Why not to use just  Sum(Budget) as your tables are connected through PartCategory.

thomas_skariah
Creator III
Creator III

Hi,

Find the attached application.

Hope this works.

Regards,

Tom

Not applicable
Author

Oh sorry, the 2 tables are only connected by week.

But I am going to try now to connect them by PartCategory.

Not applicable
Author

Thanks everyone, it seems to work correctly