Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
zied_ahmed1
Specialist
Specialist

IF condition with date

Hello,

in a pivot table I have a date like 01/01/2017

i need an expression like this

  if (Dimensionality()=1,' ',

(if (Dimensionality()=2 and date>'01/06/2017',

'Hello'

)))

But it doesn't work (when i delete the condition of date it display hello...

regards

6 Replies
sunny_talwar

May be use Makedate() function

if (Dimensionality()=1,' ',

(if (Dimensionality()=2 and date>MakeDate(2017, 6, 1),

'Hello'

)))

zied_ahmed1
Specialist
Specialist
Author

Thank you sunny but it doesn't work

sunny_talwar

is date a true date field?

zied_ahmed1
Specialist
Specialist
Author

yes yes it's like 01/01/2017

sunny_talwar

Then no idea

marcohadiyanto
Partner - Specialist
Partner - Specialist

Hi Zied,

May i know your dimensions?

I tried i can do with your expression when i put my date as my second dimensions.

You should try that.

But why you want to filter the date?

Regards

Marco