Forum Discussion

Kingnico63000's avatar
Kingnico63000
Regular Visitor
2 years ago
Solved

Show different values in bar chart / line chart in the same visual

Hello,    I have data like this   N Value 1  1/01 5 1  2/01 4 2  1/01 6 2  2/01 5 3  1/01 4 3  2/01 7  4  1/01 6 4  2/01 3   I want 2 slicers : One for value in bar chart and one for va...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Kingnico63000 ,

    If it contains a lot of dates, please try the following methods:

    1.Create the simple table.

    2.Create the measure to filter based on slicer1.

     

    Measureslicer1 = 
    VAR sli1_n = SELECTEDVALUE('Table slicer1'[N])
    RETURN
        CALCULATE(SUMX('Table', 'Table'[Value]), FILTER('Table', 'Table'[N] = sli1_n))

     

    3.Create the measure to filter based on slicer2.

     

    Measureslicer2 = 
    VAR sli1_n = SELECTEDVALUE('Table slicer2'[N])
    RETURN
        CALCULATE(SUMX('Table', 'Table'[Value]), FILTER('Table', 'Table'[N] = sli1_n))

     

    4.Select 2 in the slicer1 and select 4 in the slicer2.

    5.Drag the two measures into the line and column chart.

    6.The result is shown below.

    Best Regards,

    Wisdom Wu

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.