Forum Discussion

More_BI's avatar
More_BI
Frequent Visitor
9 years ago
Solved

Switch function breaking my chart

Hey guys,   I use the switch function in various measures to carefully toggle how the KPI will be implemented. For example, I have a column called "Rollup Type" which is tied to the list of KPIs. I...
  • MFelix's avatar
    9 years ago

    Hi More_BI,

     

    Try to change your measure to something like this:

     

    a_test = SWITCH(MAX('KPI List'[Rollup Type])
    "SUM", CALCULATE([ValueAtCurrency], 'KPI Data'[Version] = "Actual"), "EOB", CALCULATE([ValueAtCurrency], 'KPI Data'[Version] = "Actual"))

     

    Regards,

    MFelix