Measure: Products OverStocked
Property | Value |
Format | |
Format string | '' |
Measure type | Kpi |
Is default field set | False |
---------------------------------------------------------- -- PowerPivot measures command (do not modify manually) -- ---------------------------------------------------------- CREATE MEASURE 'Product Inventory'[Products OverStocked]=CALCULATE(SUM([Product-Date OverStocked]),LASTDATE('Product Inventory'[Movement Date])); CREATE MEASURE 'Product Inventory'[_Products OverStocked Goal] = 0; CREATE MEASURE 'Product Inventory'[_Products OverStocked Status] = if(ISBLANK('Product Inventory'[Products OverStocked]),BLANK(), If('Product Inventory'[Products OverStocked]<1,1, If('Product Inventory'[Products OverStocked]<5,0,-1) ) ) ; CREATE KPI CURRENTCUBE.[Products OverStocked] AS Measures.[Products OverStocked], ASSOCIATED_MEASURE_GROUP = 'Product Inventory', GOAL = Measures.[_Products OverStocked Goal], STATUS = Measures.[_Products OverStocked Status], STATUS_GRAPHIC = 'Three Symbols UnCircled Colored'; |