Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
priya945
Creator
Creator

Use Calculated Dimension to restrict the date

Hi All,

My Data is 

ValueDateRegon
18/31/2018N
19/30/2018S
110/31/2018N
011/30/2018S
112/31/2018N
01/31/2019S
12/28/2019N
03/31/2019S
14/30/2019N
05/31/2019S

 

Expected output in pivot table. My requirement is to restrict the Date  for last 2 dates using the calculated dimension  . Please suggest

 RegionNS
 Date4/30/20195/31/20194/30/20195/31/2019
Value 1000

 

Thanks in advance.

Labels (1)
1 Solution

Accepted Solutions
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

maybe use something like this

=Aggr(If(Rank(Date)<=2,Date),Date)

View solution in original post

1 Reply
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

maybe use something like this

=Aggr(If(Rank(Date)<=2,Date),Date)