Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Independent validation for trusted, AI-ready data integration. See why IDC named Qlik a Leader: Read the Excerpt!
cancel
Showing results for 
Search instead for 
Did you mean: 
raju_salmon
Creator II
Creator II

How to merge two different tables to one

Hi Experts,

Please help me on the below.

I have two tables

1) Dimension: Continent

    Expression: Sum(Sales)

2) Dimensions: Country

    Expression: Sum(Cost)

I want to produce single table with 1 Dimension and 1 expression. Where dimension should list Continent, Country values with respective to the relevant expression.


Thank you in advance.


Regards,

Raju

5 Replies
swuehl
MVP
MVP

You want to list Continent and Countries in the same dimension of a chart and then show sales and costs in the same expression column? Wouldn't this be quite confusing?

Maybe I don't understand what you are after. Some sample lines of data and your expected result might help.

raju_salmon
Creator II
Creator II
Author

I have got a solution in https://community.qlik.com/thread/214540

Example:

Dimension:

=pick(match($Field,'Year','Month') ,Year,Month)

Expression:

=Pick(Match($Field,'Year','Month'),

Sum(Sales),

Sum(Cost))

But however i need to show Total for each dimension. Like we show in pivot table. Any suggestion on this?

raju_salmon
Creator II
Creator II
Author

Totals Snap.jpg

shreya_nadkarni
Partner - Creator
Partner - Creator

Test2.png

shreya_nadkarni
Partner - Creator
Partner - Creator

Concatenate Two table to get the Total.