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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to show it in pivot table

HI All,

I have the following table:

load * Inline

[YearMonth, Revenue, TimeId,ShowTimeId

2015-7-1,100,400,399

2015-7-1,200,401,402

];

I want to use one pivot table to show the data as following:

Dimension: YearMonth, Custom Dimension(if the ShowTimeID< the min of the TimeId then "Case1" else Case2)

The min of the TimeId for this case is 400

Metric: sum(Revenue)

How can I do that?

Thanks.

3 Replies
qlikmsg4u
Specialist
Specialist

Hi Issac,

Use this in Calculated Dimension

=IF(ShowTimeId < Aggr(Min(TimeId),TimeId),'Case1','Case2')

settu_periasamy
Master III
Master III

Hi

PFA

Not applicable
Author

Hi,

PFA.

Hope it helps.