Forum Discussion
Anonymous
7 years agoNot applicable
Calculated measure that won't sum
Hi, I have a question about a calculated measure that won't sum in a table. The measure is FreightCost Forecast = if(sum(transportorder[freightcost])=0;calculate(transportorder[Freight...
- 7 years ago
Good morning Anonymous
I can, yes.
Updated PBIX file available here: https://www.dropbox.com/s/eu9rx5206hqpddo/FreightForcast.pbix?dl=0
jdbuchanan71
Super User
6 years agoSure, here you go.
FreightCostLY =
CALCULATE(
[FreightCost],
SAMEPERIODLASTYEAR(Dates[Date])
)FreightCostForcast =
VAR FutureMonths = FILTER ( VALUES ( Dates[Date (bins)] ) , [FreightCost] = 0 )
RETURN
SUMX(
FutureMonths,
[FreightCostLY] * .8
)
AN_PBI
6 years agoFrequent Visitor
Thanks a lot