Forum Discussion
Anonymous
7 years agoNot applicable
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
Solution Sage
Hi Anonymous
Can you share some sample data and the result you are trying to acheive
Regards
Affan
- AnonymousNot applicable
it is a huge pbix... can you give me and idea or something to try affan?
- AnonymousNot applicable
where I should add a filter in that dax formula...I could use "IN" or filter function?