Forum Discussion

gianmarco's avatar
gianmarco
Helper IV
3 years ago
Solved

Measure or custom column?

Dear All, I have a table which filters by the following values: null x z   What I want to achieve is a filter which incorporates only the "x" and "y" options, but when you filter for ...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi gianmarco 

    You can refer to the following suggestion

    Sample data

     

    Slicer data 

     

    You can create a measure

    Measure = IF(ISFILTERED('Table (2)'[Column1]),IF("X" in VALUES('Table (2)'[Column1]),CALCULATE(SUM('Table'[Value]),FILTER('Table',OR('Table'[Type] in VALUES('Table (2)'[Column1]),[Type]=""))),CALCULATE(SUM('Table'[Value]),FILTER('Table','Table'[Type] in VALUES('Table (2)'[Column1])))),SUM('Table'[Value]))

    Output

     

     

    Best Regards!

    Yolo Zhu

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