Search code examples
ssasmdx

what you want to evaluate and if [Consommation Moyenne] is a hierarchy


hello how to calculate kpi with iff for exemple if IIF ([Measures].[Consomation Energie]) >[Dim Consommation Moyenne].[Consommation Moyenne] msg bad consumption else good consumption


Solution

  • Try the following

    IIF ([Measures].[Consomation Energie] > [Dim Consommation Moyenne].[Consommation Moyenne],
         "bad consumption",
         "good consumption")