Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

switch two columns with two slicers

Hi, here is a complcated problem that with two slicers here is the data and relative slicers:   when I select values from slicer1, sum the value from cal1, and when I select values from sli...
  • v-kkf-msft's avatar
    4 years ago

    Hi Anonymous ,

     

    Please close the interaction between the two slicers. Then use the following measure to calculate.

     

    Measure =
    IF (
        ISFILTERED ( data[dim1] ),
        SUM ( data[cal1] ),
        IF ( ISFILTERED ( data[dim2] ), SUM ( data[cal2] ) )
    )
    

     

    If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
    Best Regards,
    Winniz
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.