Forum Discussion
LOOKUPVALUE help
- 10 years ago
MojoGene These are the Measures I used ....
YTD Value = TOTALYTD(SUM(TimeTable[Hourly Value]), CalendarTable[Date]) YTD Cost = SUM(Costs[Total Comp])*YEARFRAC(STARTOFYEAR(CalendarTable[Date]), TODAY(),3) YTD P/L = [YTD Value] - [YTD Cost] YTD P/L % = DIVIDE([YTD P/L], [YTD Cost], 0)
Here's the sample I created and the result... Hope this helps!
Mike:
Thanks for taking a stab at this. Unfortunately, I am still running into a brick wall.
The relationships you suggested already existed.
The measure you suggested returned the following error: "Column 'TotalComp' in table 'Costs' cannot be found or may not be used in this expression."
Any suggestions on the solution here would be appreciated.
You code had a space between TotalComp and ], which I copied. That mightve been a typo in your OP. Intellisense should make this easy to resolve at your end.
- Sean10 years agoCommunity Champion
MojoGene These are the Measures I used ....
YTD Value = TOTALYTD(SUM(TimeTable[Hourly Value]), CalendarTable[Date]) YTD Cost = SUM(Costs[Total Comp])*YEARFRAC(STARTOFYEAR(CalendarTable[Date]), TODAY(),3) YTD P/L = [YTD Value] - [YTD Cost] YTD P/L % = DIVIDE([YTD P/L], [YTD Cost], 0)
Here's the sample I created and the result... Hope this helps!
- MojoGene10 years agoPost Patron
Sean:
Eurika!
Thanks very much.
Gene