Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Crosstab and transpose function from Excel

Hello Gurus,

Need some help here. I have a source file in the format that is not so straight forward. Have been trying out the cross tab and transpose function and it can work to a certain extend however i want to add additionally calculated fields.

[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8637.Variables_2D00_1.txt:550:0]

I've attached the sample source file. I want to add a few calculated metrics such as below:

set vGrossProfit = '(Sales - [Cost of Sales])';
set vOperatingProfit = '$(vGrossProfit)-[Operating expenses]';

The problem only occur when there is an additional dimension (Company) being added into the source file. Initially it was ok when there is just Item, and the Date.

Can anyone help?

1 Solution

Accepted Solutions
amars
Specialist
Specialist

Hi Johny,

See if the attached example helps you.

Thanks..

If this answers your question Please select Mark as an Answer



View solution in original post

3 Replies
amars
Specialist
Specialist

Hi Johny,

See if the attached example helps you.

Thanks..

If this answers your question Please select Mark as an Answer



Not applicable
Author

Thanks Amar! This should be it. Guess we have to create multiple temp tables for it. Great

Not applicable
Author

Hi,

See if this works . if we use it in Exprs.. 🙂

Srini

[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/8231.Cross-Tbale.rar:550:0]