Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
pkelly
Specialist
Specialist

Pivot Table - Format

Hi All

I am trying to acheive the following format in a pivot table...

ProductProduct AProduct A
CustomerVar ValueVar %Var ValueVar %
CustomerASales
Gross Profit
CustomerBSales
Gross Profit
CustomerCSales
Gross Profit


The only way I can see to do this is to create a stand alone table with my Var Value and Var% as fields.

Is there another (easier) way of doing this from within the pivot table...

EDIT:

Second product column should read product B

Regards

Paul

5 Replies
pkelly
Specialist
Specialist
Author

Any ideas?

Not applicable

It is a matter of dragging your dimensions and expressions into the right place. See attached

pkelly
Specialist
Specialist
Author

Thank you - whilst this is close it is not the layout which I am looking for...#

For sales and gross profit I want to see Var Value and Var % for each product.

Any help greatly appreciated...

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

I realize it's a bit late, but...

- You can create a calculated dimension using function Valuelist() and condition your expressions based on the value. For example:

Dimension = ValueList('Var Value', 'Var %')

Expression:

if ( ValueList('Var Value', 'Var %') = 'Var Value', sum(Sales), sum(Sales)/sum(Total Sales))

As a side comment - I'd challenge this sort of presentation where you show both Sales and GP, and both are presented as values and as %. In my opinion, the table becomes too busy and hard to read. I'd look for a better way to visualize this information.

pkelly
Specialist
Specialist
Author

Thanks Oleg - I will give it a go...

Agree with you 100% on the presentation but this is the layout our user wants to see.