Forum Discussion

r4v3n's avatar
r4v3n
New Member
3 years ago
Solved

Add a selectable legend to multiple Y-axis series chart ?

Hi,   I could not find a proper documentation on how to realize this very simple task.   The data model looks like this :      Each column holds the count of a category over time, i am t...
  • r4v3n's avatar
    r4v3n
    3 years ago

    Ok so i was able to figure it out, here's how you can modify the previous DAX to include for multiple selections : 

     

    Value1 =
    IF (
        LASTNONBLANK ( 'Select'[Select], 1 ) = "Value1",
        LASTNONBLANK ( 'total per row'[expected], 1 ),
        IF (
            CONTAINS(ALLSELECTED('Select'[Select]), [Select], "Value1"),
            LASTNONBLANK ( 'total per row'[expected], 1 ),
            BLANK ()
        )
    )

     

    Basically saying, display Liner Value 1 if it's the lastnonblank or if it's in the list of selected filters for the select column category. 

     

    Could probably get rid the first if conditional imo, but was just trying to quickly fix the problem. 

     

    Hopefully this helps anyone that goes through same problem in the future.