Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
5 years ago
Solved

DropDown option to select another chart

  • Anonymous's avatar
    Anonymous
    5 years ago

    Hello @MuraliPrasathS

    You can achieve your goal by segmenting and measureing.

    I build a table (values) like yours and build a slicer table.

    Mesa:

    1.png

    ProductName Table(Slicer Table):

    2.png

    Measure:

    Chart Data Source =
    VAR _Sel =
        SELECTEDVALUE ( ProductName[ProductName] )
    RETURN
        IF (
            ISFILTERED ( ProductName[ProductName] ),
            SWITCH (
                TRUE (),
                _Sel = "ProductA", SUM ( 'Table'[ProductA] ),
                _Sel = "ProductB", SUM ( 'Table'[ProductB] ),
                SUM ( 'Table'[ProductC] )
            ),
            BLANK ()
        )

    The result is as follows.

    By default, it will be blank.

    3.png

    Select ProductA in the slicer:

    4.png

    You can download the pbix file from this link: DropDown option to select another chart

    Best regards

    Rico Zhou

    If this post helps,then consider Accepting it as the solution to help other members find it faster.

2 Replies