Forum Discussion
Anonymous
4 years agoNot applicable
Filter multiple Rows with same value (in column 1) when a value (in column 2) is given
Dear all, I need your support in writing a DAX formula. Situation I have a table that contains a column "Auftragsnummer" (order no.) and a column "Artikel" (article). There can be several article...
- 4 years ago
Anonymous
For example we don't want any row with product A/ignore all the orders if it has A
Solution = IF( ISBLANK( CALCULATE(max('Ignore'[Column2]),(ALLEXCEPT('Ignore','Ignore'[Order No.])),'Ignore'[Column2]="A")),1,0)Now you can filter 1 to get the desired output
Thanks,RiteshMark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users
johnt75
4 years agoSuper User
You could create a table like
Orders with ZSOPA = CALCULATETABLE( VALUES( 'Table'[Auftragsnummer]), 'Table'[Artikel] = "ZSOPA")
and link that in a one-to-many relationship to the main table. On visuals you could add a filter so that the 'Orders with ZSOPA'[Auftragsnummer] is blank, and if you wanted to filter inside measures you could use
My measure = CALCULATE( some calculation,
TREATAS( { BLANK()}, 'Orders with SZOPA'[Auftragsnummer] )
)