Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
8 years ago
Solved

Dynamic Reference Line Trouble

Hi!   This is my first post, I really hope you can help me.    On an analysis we're working on (Primary and Middle School Analysis) , we've created a line and stacked column of performance level ...
  • v-huizhn-msft's avatar
    v-huizhn-msft
    8 years ago

    Hi Anonymous,

    Please create a measure using the formula below. You can add more choice in the SWITCH function, for example, ELA 5, ELA 6, ELA 7 and so on.


    line =
    IF (
        ISFILTERED ( Table[ClassGrades] ),
        SWITCH ( SELECTEDVALUE ( Table[ClassGrades] ), "ELA 3", 58, "ELA 4", 61, 100 ),
        0
    )
    



    Then add the measure in line chart field, you will get expected result.

     

    Best Regards,
    Angelia