Forum Discussion
undefined
Anonymous
Please see the below measures which used in the matrix table
Goal measure=
var currentyear=selectedvalue(DateTable[Year])
var Actual=Calculate(Countrows(ActualTable),ActualTable[Year]=currentyear)+0
Forecast=Calculate(countrows(ForecastTable),Year(ForecastTable[NextDueDate])=currentyear)+0
return
Actual+Forecast
Completed measure=
var currentyear=selectedvalue(DateTable[Year])
var Actual=Calculate(Countrows(ActualTable),ActualTable[Year]=currentyear,ActualTable[Status]="Completed")+0
Forecast=0
return
Actual+Forecast
- Anonymous2 years agoNot applicable
Hi Rakesh_508 ,
Your requirement is to calculate the sum, why use countrows, try using the sum function
Hope it helps!
Best regards,
Community Support Team_ Scott ChangIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
- Rakesh_5082 years agoHelper I
Anonymous
I tried and could not able to use sum insted of countrows....Can you please help me out on Goal and Completed measures using sum???
- Anonymous2 years agoNot applicable
Hi Rakesh_508 ,
Please share your sample data in text form.
Best regards,
Community Support Team_ Scott Chang