Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
sagarpawar
Contributor III
Contributor III

How will show/Get only next month data in Pivot table

Hi All,

Please help me on below scenario to achieve expected result.

I need to show only next month data and Month & Year(Ex: sep_19) of next month in Label.

Please find below scenario with example.

EX-1:

Current Result:

ABCD
DEPOT1DIFFdec_193927
DEPOT1DIFFoct_191837
DEPOT1DIFFsep_191053

 

Expected Result(In pivot table):

ABsep_19
DEPOT1DIFF1053

 

 

EX-2:

ABCD
DEPOT2DIFFdec_192475
DEPOT2DIFFoct_195496

 

Expected result:

ABoct_19
DEPOT2DIFF5496

 

Thanks & Regards,

SGP

SGP
1 Solution

Accepted Solutions
rubenmarin

Hi, please check attachment.

In summary: you can create a conditonal dimension that filters the month, like:

=Aggr(If(Date=Min(TOTAL <A,B> {<Date={">=$(=Num(Date(Today())))"}>} Date), C), A, B, C)

The italic part only is needed if there can be data of past/current months

View solution in original post

2 Replies
rubenmarin

Hi, please check attachment.

In summary: you can create a conditonal dimension that filters the month, like:

=Aggr(If(Date=Min(TOTAL <A,B> {<Date={">=$(=Num(Date(Today())))"}>} Date), C), A, B, C)

The italic part only is needed if there can be data of past/current months

sagarpawar
Contributor III
Contributor III
Author

HI,

Thanks for help.

I tried using below expression but as I'm new in QlikView not able to implement it properly.

Below I'm providing you my actual column name. Can you please explore the same using real column.

A=DIM_NOMOFF

B=SOURCE

C= MONTH &'_'& Right(YEAR,2)

D=Sum(CA)

 

Thanks & Regards,

SGP

SGP