Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

filter in DAX

 

Hi Community I need some help....Im trying to build a DAX but I need to filter certain words which are in other column.

 

Any suggestion to improve my DAX: 

 

MAL ASIGN = CALCULATE(COUNTROWS(base);
ALLEXCEPT(Base;Base[MAL ASIGNADO]);
ALL(Base[MAL ASIGNADO];Base[MAL ASIGNADO]);
Base[MAL ASIGNADO]=1)

 

That formula is working but I still need to add 4 filters which are in a column of my table... how can I solve this? ...I need to add the filter in this formula to get the right  result.

 

  • For your example shown in pcture, you could do something like this:

    Measure =
    CALCULATE ( COUNTROWS ( Table ), NOT ( Table[CRANCOT2] IN { 910, 500, 502 } ) )

7 Replies

  • affan's avatar
    affan
    Icon for Solution Sage rankSolution Sage

    Hi Anonymous

     

    Can you share some sample data and the result you are trying to acheive

     

    Regards

    Affan

    • Anonymous's avatar
      Anonymous
      Not applicable

      it is a huge pbix... can you give me and idea or something to try affan

      • Anonymous's avatar
        Anonymous
        Not applicable

        where I should add a filter in that dax formula...I could use "IN" or filter function?