Forum Discussion
MojoGene
Post Patron
10 years agoLOOKUPVALUE help
I am attempting to determine timekeeper net profit by subtracting the timekeeper's costs from the value of the timekeeper's work. There is a table, 'TimeTable', that contains columns for [Timekee...
- 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_honey
Memorable Member
10 years agoYou 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.
Sean
Community Champion
10 years agoMojoGene 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 ago
Post Patron
Sean:
Eurika!
Thanks very much.
Gene