Forum Discussion

JustinDoh1's avatar
JustinDoh1
Icon for Post Prodigy rankPost Prodigy
5 years ago
Solved

How to insert calculated value as Filter (Calculate/Filter) value

(Sorry this is a duplicate question that I posted few days ago, but I did not get answer/solution so I am posting it again). I am trying to insert "What If" (New Parameter) calculation value inside ...
  • AlexisOlson's avatar
    5 years ago

    [Forecast] is a measure, not a calculated column, so MAX([Forecast]) doesn't make sense to the calculation engine.

     

    Try this instead:

     

    StarCalculatedParameter1 =
    VAR Forecast = [Forecast]
    RETURN
        CALCULATE (
            VALUES ( Star[Value] ),
            FILTER ( Star, Star[Min] <= Forecast && Star[Max] >= Forecast )
        )