Hello,
I have 2 columns with dates that need to be adjusted to 1st of the month if day<15, or next month if day >=15
If I use the date( year(), month() + if(day<15, 0, 1), 1) in excel, it works fine, but in powerpivot it gives an error.
When I break it down in steps:
- date(year(), 1, 1) works fine
- date(year(), month(), 1) doens't work anymore
It seems that PowerPivot blocks as soon as 2 items are made variable.
Anyone have a solution?
Thanks
Céline
I have 2 columns with dates that need to be adjusted to 1st of the month if day<15, or next month if day >=15
If I use the date( year(), month() + if(day<15, 0, 1), 1) in excel, it works fine, but in powerpivot it gives an error.
When I break it down in steps:
- date(year(), 1, 1) works fine
- date(year(), month(), 1) doens't work anymore
It seems that PowerPivot blocks as soon as 2 items are made variable.
Anyone have a solution?
Thanks
Céline