Forum Discussion
DAX Filter not in date
- 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
Hi nooneliveforeva,
Can you be please eloborate more on what is the issue that you are facing?
from your post what I can get is that you want subset of the first table where date is in 2017.
If thats the case you can use CALCULATETABLE for New table
Click on New table in Modeling tab and use below formula
CALCULATETABLE(table, table[date]=2017)
Hope this helps.
-Sumit
- nooneliveforeva9 years agoFrequent Visitor
Hi,
Thank you for your quick reply,
I want location where date is only in 2017.
CALCULATETABLE(table, table[date]=2017)
This will give me :
PARIS 2017 LONDON 2017 I only want :
LONDON 2017 London where not present in 2016
- kaushikd9 years agoResolver II
Put a slicer into the report area and select location.So when you click london the records with date 2017 and location London will be displayed.
- nooneliveforeva9 years agoFrequent Visitor
Thank you for your reply,
using a slicer give me result where Location is present on 2017, but
i want PRESENT IN 2017 AND NOT PRESENT IN 2016