Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculating a dimension to show Highest Month and Lowest Month Values

I have a table with values in. I'd to show the highest month and lowest month

Orig Table

TypeApr-14May-14Jun-14Jul-14Aug-14
Amendments & Changes313849010375
Billing2831167587545081507
Direct Debits2551263597905712795
Leaving18822570164
Meters2211961751316572
Moving Home2174151611077
Online Account2815502133241787
Other6646342921348652
Payments2380158479134581190
Readings1797134272519072274
Switching161796097083
Tariffs165874132793801762
Unknown7181692000

New Table Required

HighLow
Amendments & ChangesJun-14 (901)Jul-14(0)
BillingApr-14 (2831)Jul-14(508)
Direct DebitsJun-14 (9790)Jul-14(571)

(Just first 3 lines shown to illustrate, need all lines including)

I've had a play around with the Rank and Aggr functions but haven't had much luck. Can anyone help?

1 Solution

Accepted Solutions
MarcoWedel

Hi,

one possible solution:

QlikCommunity_Thread_131165_Pic1.JPG.jpg

QlikCommunity_Thread_131165_Pic2.JPG.jpg

QlikCommunity_Thread_131165_Pic3.JPG.jpg

table1:

CrossTable (MonthText, Value)

LOAD *

FROM [http://community.qlik.com/thread/131165]

(html, codepage is 1252, embedded labels, table is @1);

Left Join (table1)

LOAD Distinct

  MonthText,

  Date#(MonthText, 'MMM-YY') as Month

Resident table1;

hope this helps

regards

Marco

View solution in original post

1 Reply
MarcoWedel

Hi,

one possible solution:

QlikCommunity_Thread_131165_Pic1.JPG.jpg

QlikCommunity_Thread_131165_Pic2.JPG.jpg

QlikCommunity_Thread_131165_Pic3.JPG.jpg

table1:

CrossTable (MonthText, Value)

LOAD *

FROM [http://community.qlik.com/thread/131165]

(html, codepage is 1252, embedded labels, table is @1);

Left Join (table1)

LOAD Distinct

  MonthText,

  Date#(MonthText, 'MMM-YY') as Month

Resident table1;

hope this helps

regards

Marco