Forum Discussion
nooneliveforeva
9 years agoFrequent Visitor
DAX Filter not in date
Hello, I have issu using filter. This is what i have : Location Date PARIS 2016 PARIS 2017 LONDON 2017 MADRID 2016 NEW-YORK 2016 I want to have a table where locatio...
- 9 years ago
Hi nooneliveforeva,
Would you like to try this formula in a New Table.
Result = FILTER ( 'SourceTable', 'SourceTable'[Year] = 2017 && ( NOT 'SourceTable'[City] IN CALCULATETABLE ( VALUES ( SourceTable[City] ), FILTER ( 'SourceTable', 'SourceTable'[Year] = 2016 ) ) ) )Best Regards!
Dale
sumit4732
Advocate II
9 years agoHi nooneliveforeva,
Do you see data in solution table, please make sure that there is no relationship created automatically by PowerBI which is filtering the data.
Also please share screenshot and sample data for clear understanding out problem.
-Sumit
nooneliveforeva
9 years agoFrequent Visitor
- sumit47329 years ago
Advocate II
- nooneliveforeva9 years agoFrequent Visitor
- v-jiascu-msft9 years ago
Microsoft Employee
Hi nooneliveforeva,
Would you like to try this formula in a New Table.
Result = FILTER ( 'SourceTable', 'SourceTable'[Year] = 2017 && ( NOT 'SourceTable'[City] IN CALCULATETABLE ( VALUES ( SourceTable[City] ), FILTER ( 'SourceTable', 'SourceTable'[Year] = 2016 ) ) ) )Best Regards!
Dale