learningpp
New Member
- Joined
- Dec 16, 2014
- Messages
- 2
I am trying to graph a gross margin forecast by project for the next 6 to 12 months based on the contract dates of the projects. My calendar table is setup by date (i.e. 1/1/2014, 1/2/2014, etc). I then have a contract tab with the beg date and end date. I want to base the GM forecast on the average GM which I have calculated in a measure for this year. I have tried several formulas and keep getting errors.
Here are the formulas that I tried and I keep getting errors:
=CALCULATE([AvgGM],Contracts[Beg Date]>Calendar2014[Date]&&Contracts[End Date],Calendar2014[Date])
=if(Contracts[Beg Date]>Calendar2014[Date]&&Contracts[End Date]<Calendar2014[Date],CALCULATE([AvgGM]),0)
Thanks!
Here are the formulas that I tried and I keep getting errors:
=CALCULATE([AvgGM],Contracts[Beg Date]>Calendar2014[Date]&&Contracts[End Date],Calendar2014[Date])
=if(Contracts[Beg Date]>Calendar2014[Date]&&Contracts[End Date]<Calendar2014[Date],CALCULATE([AvgGM]),0)
Thanks!