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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
vsharma1
Partner - Creator
Partner - Creator

Pivot Table

Can we display like below in Pivot Table?

 

  YTD 2018YTD 2019MTD 18MTD 19
TextileRevenue50008000500700
FoodRevenue20003000200250
TransportRevenue10002000300450
Labels (1)
6 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Yes.


talk is cheap, supply exceeds demand
vsharma1
Partner - Creator
Partner - Creator
Author

Sorry i cant open qvw 

Can you attach code in text file or word doc with screenshots if possible please thanks

 

vsharma1
Partner - Creator
Partner - Creator
Author

Sorry i cannnot open qvw 

Can you attach code in text file or word doc with screenshots if possible please thanks

 

vsharma1
Partner - Creator
Partner - Creator
Author

i cant open the qvw since i do not have the license version available

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Here's the load script:

 

SET ThousandSep='.';
SET DecimalSep=',';
SET MoneyThousandSep='.';
SET MoneyDecimalSep=',';
SET MoneyFormat='€ #.##0,00;€ -#.##0,00';
SET TimeFormat='h:mm:ss';
SET DateFormat='D-M-YYYY';
SET TimestampFormat='D-M-YYYY h:mm:ss[.fff]';
SET MonthNames='jan;feb;mrt;apr;mei;jun;jul;aug;sep;okt;nov;dec';
SET DayNames='ma;di;wo;do;vr;za;zo';
SET LongMonthNames='januari;februari;maart;april;mei;juni;juli;augustus;september;oktober;november;december';
SET LongDayNames='maandag;dinsdag;woensdag;donderdag;vrijdag;zaterdag;zondag';
SET FirstWeekDay=0;
SET BrokenWeeks=0;
SET ReferenceDay=4;
SET FirstMonthOfYear=1;
SET CollationLocale='nl-NL';

LOAD * INLINE [
    Product, Type  , YTD 2018, YTD 2019, MTD 18, MTD 19
    Textile, Revenue, 5000, 8000, 500, 700
    Food, Revenue, 2000, 3000, 200, 250
    Transport, Revenue, 1000, 2000, 300, 450
];

 

 

Here's the screenshot:

c1584770.png

The pivot table has two dimensions: Product and Type.

The pivot table has four expressions: Sum([YTD 2018]),Sum([YTD 2019]),Sum([MTD 18]) and Sum([MTD 19])


talk is cheap, supply exceeds demand
vsharma1
Partner - Creator
Partner - Creator
Author

Thanks, I will try your solution  and let you know soon