Forum Discussion
Anonymous
6 years agoNot applicable
Not exist
Hello,
I have two table (Table01 and Table 02)
How I can get Table 03 that have the ID that exist in table 02 and not exist in table 01
Thanks.
Anonymous ,
Table = EXCEPT(DISTINCT('Table1'[Product ID]),DISTINCT('Table2'[Product ID]))
4 Replies
- Tahreem24Super User
Anonymous ,
Uuse the EXCEPT() function for your requirement.
- amitchandakSuper User
Anonymous ,
a new table
Table = EXCEPT(DISTINCT('Table1'[ProductID]),DISTINCT('Table2'[ProductID]))as a measure
Measure = countx(EXCEPT(DISTINCT('Table1'[ProductID]),DISTINCT('Table2'[ProductID])), [ProductID])
- Tahreem24Super User
Anonymous ,
Table = EXCEPT(DISTINCT('Table1'[Product ID]),DISTINCT('Table2'[Product ID])) - andreMemorable Member
if you are trying to find products with NO sales in a given period, then this video should help you as this is exactly what it's for:
if you want to practice, download the tutorial here: https://businessintelligist.com/2020/07/25/dax-tutorial-how-to-count-things-that-did-not-happen/