Forum Discussion
mrslyfox
9 years agoHelper II
Target Value KPI Targets
Hello, Have a raw based table with target values for each month. Each raw has a link date for the first date of month. My KPI should calculated for previous day of month and compared with target v...
mrslyfox
9 years agoHelper II
Measure:= SUMX(RELATEDTABLE(F_Inventory),F_Inventory[M2])
/
(CALCULATE(
IF(
COUNT(D_Date[DATE_Date])>=30,
SUM(F_Invoice[M2])
),
FILTER(
ALL(D_Date),
D_Date[DATE_Date]>(MAX(D_Date[DATE_Date])-30)
&& D_Date[DATE_Date]<=MAX(D_Date[DATE_Date])
)
)/30)
MFelix
9 years agoSuper User
With only the formula of this meaasure and not knowing what each value represents I can't do a lot but I notice that in the IF you do a Count of the DATE why are you using a count and not the actual date itself?