54fce98f_ining___multidimensionalmayhem__Cause_Solution
[Error] 4. DMX Function Context Errors – When using data mining functions, you receive errors like this, although the name of the function may vary: “The PREDICTHISTOGRAM function cannot be used in the context” [Cause/Solution] 
This signifies that a particular function can’t be used with the algorithm the mining structure is built on. For example, Lag cannot be used with Time Series mining models. I have seen this error in connection with PredictHiatogram and Lag, although it is probably not limited to those two DMX functions.
An Informal Compendium of SSAS Errors, Part 2: Data Mining | multidimensionalmayhem
Cause/Solution