Forum Discussion

KLAH96's avatar
KLAH96
Regular Visitor
5 years ago
Solved

Specific filters

Hello everyone, I need your help for the following problem :  At the filter level, I filter on a category and at the graph level, I display all categories except the filtered one. by using the foll...
  • v-kkf-msft's avatar
    v-kkf-msft
    5 years ago

    Hi KLAH96 ,

     

    Try the following formula:

     

    sum = 
    var FilteredID = 
        CALCULATETABLE(
            VALUES(commitment[id_suppliers]),
            ALLSELECTED(commitment)
        )
    var AllID = 
        CALCULATETABLE(
            VALUES(commitment[id_suppliers]),
            ALL(commitment)
        )
    return 
        CALCULATE(
            [Σ of commitments], 
            NOT('Category Segment'[Category label]) IN FILTERS ('Category Segment'[Category label]),
            INTERSECT( AllID, FilteredID )
        )

     

    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.