Forum

Using if/and in Pow...
 
Notifications
Clear all

Using if/and in Powerpivot - getting error message

4 Posts
2 Users
0 Reactions
56 Views
(@agwalsh)
Posts: 100
Estimable Member
Topic starter
 

I've added a new calculated column in a PowerPivot file - this is the formula..."=IF(and([Revenue Date]>=[S&M Contract Start date],[Revenue Date]<=[S&M Renewal Date - Finish]),"Yes","No")"

I've checked the brackets etc but it's evaluating to an error and the issue seems to be with the "yes", "no" part - what am I missing? Thank you

 
Posted : 14/04/2018 4:59 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Anne,

I can't see anything wrong with the formula, but maybe your data types for the date columns aren't set to date?

Hard to tell without seeing the file. Are you able to share a sample file that replicates the issue?

Mynda

 
Posted : 15/04/2018 6:46 am
(@agwalsh)
Posts: 100
Estimable Member
Topic starter
 

You were right (as usual!). I had set the data types to date and refreshed but because some of the date entries were blank, it made the whole lot "Any". Filtered, refreshed, re-entered it and now it works. Of course I had forgotten to rename one of the columns but at least it's working now! Slowly, slowly, catchee Power Query Monkee...thanks a mil. 

 
Posted : 15/04/2018 7:36 am
(@mynda)
Posts: 4761
Member Admin
 

🙂 glad it's sorted now and you're one step closer to Power Pivot/Query mastery!

 
Posted : 17/04/2018 4:42 am
Share: