Forum Discussion

BillyT_350's avatar
BillyT_350
Helper V
8 years ago
Solved

Slow Measures

I have report that analyzes data on customers. Data is filtered by three slicers, one for customer, another for data date, and the third for internal business unit (responsible for the customer).   ...
  • Anonymous's avatar
    Anonymous
    8 years ago

    With this measure, you are calling, and calculating the [Scr%_ApptDesir] measure 7 times...it only needs to be calculated once.

     

    try this:

     

    Grd_ApptDesir =
    VAR Score = [Scr%_ApptDesir]
    RETURN
        SWITCH ( TRUE (),
            Score >= .9, "A",
            Score >= .8, "B",
            Score >= .7, "C",
            Score >= .6, "D",
            "F"
        )